Group options with product - Backend and Email

  • Posts: 9
  • Thank you received: 1
10 years 1 week ago #213525

-- HikaShop version -- : 2.3.0

We have the option "Group options with product" enabled. During checkout, it shows up fine. However, in the confirmation email and in the backend, the options show up as individual products. Hence it is sometimes difficult to know to which product they belong.

Last edit: 10 years 1 week ago by thewebtailors.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 1 week ago #213528

Hello,
I just tested it on my end and it worked fine, the options were correctly displayed everywhere, can you download the last Hikashop version through our website, install it and test it again ?
Thanks.

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

  • Posts: 9
  • Thank you received: 1
9 years 11 months ago #214882

We upgraded to the newest version (2.5) but while options are grouped during checkout, they still show up as single products in the backend and email (see attachments).
There is no email override set on the customer notification email.

Any ideas why they don't show grouped? If it helps, I can pm access to the website...

Thank you!

Attachments:

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

  • Posts: 84306
  • Thank you received: 13700
  • MODERATOR
9 years 11 months ago #214941

Hi,

Yes, please provide a backend access and a link to this thread via our contact form:
www.hikashop.com/support/contact-us.html

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

  • Posts: 84306
  • Thank you received: 13700
  • MODERATOR
9 years 11 months ago #215116

Hi,

I'm not able to access the URL you provided:
take.ms/i1ky4
Could you double check it ?

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

  • Posts: 9
  • Thank you received: 1
9 years 11 months ago #215118

Looks like you got it all correct.
new.wingkingenglewood.com/administrator
I can also access the website through a French proxy: www.franceproxy.net/browse.php?u=http%3A...tor%2F&b=4&f=norefer

Please try it again if you don't mind...
Thank you!

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

  • Posts: 84306
  • Thank you received: 13700
  • MODERATOR
9 years 11 months ago #215125

Hi,

I'm still not able to access it.
I've tried on another computer/browser and same issue.

Part of the message is hidden for the guests. Please log in or register to see it.

Please make sure that it is not banned by your firewall or your hosting company.

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

  • Posts: 9
  • Thank you received: 1
9 years 11 months ago #215316

Our hosting company had indeed blocked your IP address. The IP address is now whitelisted. If you don't mind trying again. Sorry for the inconvenience.

Part of the message is hidden for the guests. Please log in or register to see it.


Part of the message is hidden for the guests. Please log in or register to see it.

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

  • Posts: 84306
  • Thank you received: 13700
  • MODERATOR
9 years 11 months ago #215322

Hi,

Great, I was able to login on your backend now.
And I've found the problem. It comes from the "HikaShop Tip field" custom plugin that you have on your website. If you disable it, the options are properly grouped with the main product. If you enable it, it doesn't work. You can see my last test order, with the plugin disabled and it worked just fine.

OVH is indeed a server hosting company. But it's also an Internet Service Provider for Pros in France. Blocking all the IPs from OVH is not an ideal solution as it means that all the customers from the OVH ISP can't access the websites hosted by your hosting company.
www.ovhtelecom.fr/offre-internet/

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

  • Posts: 9
  • Thank you received: 1
9 years 11 months ago #215584

Thank you for narrowing down the problem. It is indeed the tipping plugin. However, after much testing, my suspicion is that how $cart->additional is handled by the shopping cart, "ungroups" grouped options.

Even just using the code below will already ungroup the options.

defined('_JEXEC') or die('Restricted access');
class plgHikashopTwt_tip extends JPlugin {
	function plgHikashopTwt_tip(&$subject, $config){
		parent::__construct($subject, $config);	
	}
	function onAfterCartShippingLoad(&$cart) {
		$object = new stdClass();
		$object->price_value = "100.00";
		$object->price_value_with_tax = "100.00";
		$object->price_currency_id=2;
		$object->name="Tip";
		$object->value=0;
		$cart->additional['tip']=$object;
	}
}

Feel free to use the FTP and Joomla access info to check into it...

Thank you!

PS: Will let the hosting provider know about OVH.

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

  • Posts: 84306
  • Thank you received: 13700
  • MODERATOR
9 years 11 months ago #216077

Hi,

I think I see the issue.
The saving of the additionals modify the links between the products and the options and thus it breaks these links when you enable the plugin.
Try to move the code:

if(!empty($order->cart->additional)) {
						foreach($order->cart->additional as $k => $p) {
							$order->cart->additional[$k]->product_id = 0;
							$order->cart->additional[$k]->order_product_quantity = 0;
							if(!empty( $p->name)) $order->cart->additional[$k]->order_product_name = $p->name;
							$order->cart->additional[$k]->order_product_code = 'order additional';
							if(!empty( $p->value)) $order->cart->additional[$k]->order_product_options = $p->value;
							if(!empty( $p->price_value)) $order->cart->additional[$k]->order_product_price = $p->price_value;
							$order->cart->additional[$k]->order_id = $order->order_id;
						}
						$productClass->save($order->cart->additional);
					}
before
$productClass->save($order->cart->products);
in the file administrator/components/com_hikashop/classes/order.php and it should then work fine.

The following user(s) said Thank You: thewebtailors

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

  • Posts: 9
  • Thank you received: 1
9 years 11 months ago #216108

That did it! All working properly now.
Are you going to apply the code change in administrator/components/com_hikashop/classes/order.php to the next HikaShop version (so that I don't have to worry about it being overridden)?

Thank you!

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
9 years 11 months ago #216112

Hi,

Yes : the patch will be include in the next release.

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.

Time to create page: 0.082 seconds
Powered by Kunena Forum