Skip to main content

Group options with product - Backend and Email

More
11 years 4 weeks ago - 11 years 4 weeks ago #213525 by thewebtailors
-- 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: 11 years 4 weeks ago by thewebtailors.

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

More
11 years 4 weeks ago #213528 by Mohamed Thelji
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.

More
11 years 2 weeks ago #214882 by thewebtailors
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!

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

More
11 years 2 weeks ago #214941 by nicolas
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.

More
11 years 1 week ago #215116 by nicolas
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.

More
11 years 1 week ago #215118 by thewebtailors
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.

More
11 years 1 week ago #215125 by nicolas
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.

More
11 years 1 week ago #215316 by thewebtailors
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.

More
11 years 1 week ago #215322 by nicolas
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.

More
11 years 1 week ago #215584 by thewebtailors
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.
Code:
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.

More
11 years 4 days ago #216077 by nicolas
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:
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
Code:
$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.

More
11 years 4 days ago #216108 by thewebtailors
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.

More
11 years 4 days ago #216112 by Jerome
Hi,

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

Regards,

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

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

Time to create page: 0.334 seconds
Powered by Kunena Forum