after update I get error on add product price

  • Posts: 57
  • Thank you received: 1
9 years 5 months ago #181755

-- HikaShop version -- : 2.3.4
-- HikaMarket version -- : 1.5.1
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.14-1

hi

after update to 1.5.1 I get error on add product price, only on front end admin back is ok

/product/index.php?option=com_hikamarket&tmpl=component&ctrl=product&task=getprice&price=1500&product_id=0&tax_id=789&conversion=0
Request Method:GET
Status Code:404 Not Found

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

  • Posts: 57
  • Thank you received: 1
9 years 5 months ago #181759

if i disable search engine friendly urls in joomla its work

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

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
9 years 5 months ago #181762

Hi,

Thanks for the report.
It is strange that the url is "/product/index.php" ; I'll investigate in order to see what can be the source of this problem.
From which version did you update ? (what was your previous version)

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: 57
  • Thank you received: 1
9 years 5 months ago #181765

Hi Jerome
I did update from 1.5.0 to 1.5.1

http://my_web.com/my_menu/product/index.php?option=com_hikamarket&tmp…ctrl=product&task=getprice&price=1200&product_id=0&tax_id=790&conversion=0 404 (Not Found)

as I said earlier it works if I disable the friendly urls in joomla and looks like

http://my_web.com/index.php?option=com_hikamarket&ctrl=product&task=add&Itemid=997 (friendly urls OFF) working

http://my_web.com/my-shop/product/add (friendly urls ON) not working

of course I want to use friendly urls ON

thanks in advance

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

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
9 years 5 months ago #181774

Hi,

The problem should exist before HikaMarket 1.5.1
In the view "productmarket | from_price", please replace

	var url = 'index.php?option=com_hikamarket&tmpl=component&ctrl=product&task=getprice&price='+price+'&product_id=<?php echo $this->product->product_id; ?>&tax_id='+tax_id+'&conversion='+conversion;
By
	var url = '<?php echo str_replace('\'', '\\\'', hikamarket::completeLink('product&task=getprice&price={PRICE}&product_id='.$this->product->product_id.'&tax_id={TAXID}&conversion={CONVERSION}', true, false, true)); ?>';
	url = url.replace('{PRICE}', price).replace('{TAXID}', tax_id).replace('{CONVERSION}', conversion);
It should provide a good SEF url.

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.
Last edit: 9 years 5 months ago by Jerome. Reason: js fix

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

  • Posts: 57
  • Thank you received: 1
9 years 5 months ago #181800

hi i GET
Uncaught ReferenceError: converion is not definedadd:841 window.productMgr.updatePriceadd:716 onchange

No tax calculates working in price

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

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
9 years 5 months ago #181808

Hi,

I replaced "converion" into "conversion" in my previous post :)

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.
The following user(s) said Thank You: 888

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

  • Posts: 57
  • Thank you received: 1
9 years 5 months ago #181828

its working now :)

thanks

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

Moderators: Obsidev
Time to create page: 0.060 seconds
Powered by Kunena Forum