option

  • Posts: 157
  • Thank you received: 2
8 years 3 months ago #263100

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.6.5

Hello again

I need the + before the price of the bottle size to disappear. This is not an addition to the price but the price by himself. Is that possible?
thanks! (see attachment)

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
8 years 3 months ago #263126

Hi,

See : www.hikashop.com/support/documentation/1...-display.html#layout

In the view "product / option", you will find the code which display that table and these elements.
You'll find the line which display the price with the "+" :

$text.=' ( '.($positive?'+ ':'').$this->currencyHelper->format($price,$ok->price_currency_id).' )';

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 157
  • Thank you received: 2
8 years 3 months ago #263150

Yes but if I need it for other options? Is there a solution for me?

Please Log in or Create an account to join the conversation.

  • Posts: 157
  • Thank you received: 2
8 years 3 months ago #263188

And another one...
In this same product, I delete the price and change the free world to something of mine (with override). And now when I add the product to the cart there is an error...

Warning: Creating default object from empty value in /home/yaeliq/public_html/components/com_hikashop/views/product/tmpl/cart.php on line 469
I thought that is because of the override but also if I delete it, this warning appears.

I checked the PHP but can't see anything special.

Is that OK to delete the general price and just give options (size) with price?

Why this warning appears when I delete the general price?

Please Log in or Create an account to join the conversation.

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
8 years 3 months ago #263159

Hi,

1. With some custom code anything is possible.
For example:
$text.=' ( '.(($positive && $optionElement->product_code!='XXX')?'+ ':'').$this->currencyHelper->format($price,$ok->price_currency_id).' )';
where XXX is the product code of the option product.

2. That's just a small warning. You can ignore it and turn off the "error reporting" setting of the Joomla configuration in order to not see it.
That issue is fixed with HikaShop 3.0.0 so you wo'nt have it when you update anyway.

Last edit: 8 years 3 months ago by nicolas.
The following user(s) said Thank You: Carolek

Please Log in or Create an account to join the conversation.

  • Posts: 157
  • Thank you received: 2
8 years 3 months ago #263258

Just want to tell you that is happened before the custom code.
Thank you!

Please Log in or Create an account to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum