Problems saving some fields in "Add New Product"

  • Posts: 108
  • Thank you received: 6
10 years 2 months ago #169889

-- HikaShop version -- : 2.3.2
-- HikaMarket version -- : 1.4.3
-- Joomla version -- : 3.3.3

Hi,
I am having some trouble saving the price & the shipping methods(manual) when you add a new product.

essentially when I save or apply the price disappears & the selected shipping disappears. If I reset the value it often saves it on the second time around?

I had a look at www.hikashop.com/forum/22-market-bug-rep...od-in-front-end.html and the version I have already has this fix applied
thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 2 months ago #169890

Hi,

Please edit the HikaShop plugin "plugins/hikashop/shippingmanual_prices/shippingmanual_prices.php" and replace

	function onAfterProductCreate(&$product) {
		return $this->onAfterProductUpdate($product);
	}
By
	function onAfterProductCreate(&$product) {
		return $this->onAfterProductUpdate($product, true);
	}

And
function onAfterProductUpdate(&$product) {
By
function onAfterProductUpdate(&$product, $create = false) {

And also
		if(!$app->isAdmin()) {
			if(isset($formData[$product->product_id]))
				$formData = $formData[$product->product_id];
			else
				$formData = array();
		}
By
		if(!$app->isAdmin()) {
			if(isset($formData[$product->product_id]))
				$formData = $formData[$product->product_id];
			else if(isset($formData[0]) && $create)
				$formData = $formData[0];
			else
				$formData = array();
		}

It should fix the problem in HikaMarket.

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: 108
  • Thank you received: 6
10 years 2 months ago #169909

thanks Jerome that worked for shipping:)

Do you have a similar fix for the "price" field?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 2 months ago #169926

Hi,

I am sorry but I can't reproduce your problem with the product price field.

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: 108
  • Thank you received: 6
10 years 2 months ago #170206

Hi Jerome,

I have been re-testing the product price issue and it is still occurring when trying to add a price to a new product or change the price of an existing product

price field is available for editing in the ACL
It occurs for both products created with & without a template
no problems adding/saving the price from the backend

can you see on my site with product ID: 69 ?

thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 2 months ago #170257

Hi,

No, I can't ; I don't have the access to see that product in your front-end.
And I'm still not able to reproduce the problem in my local website or in the demo website.

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: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 2 months ago #170282

Hi,

If you edit the view "productmarket | form_price" in order to remove the price without tax but by removing the input field and not using the HikaMarket configuration ; I can say that, your override won't work correctly.
HikaMarket likes HikaShop needs the price without tax to store it in the database ; if you remove the field, it will simply not work.

So please remove your override and use the HikaMarket features ; like the ACL on the "product / edit / prices / ..."

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: 108
  • Thank you received: 6
10 years 2 months ago #170350

Hi Jerome,

thanks for the spot - that fixed it!!

much appreciated :woohoo:

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

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