Restore all product details from cart item click

  • Posts: 113
  • Thank you received: 18
8 years 2 months ago #250145

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6.24
-- Browser(s) name and version -- : Firefox 48.02

When an item is added to the cart, the customer may often want to go back to the associated product detail screen and see the product as it was when added to the cart - variants, options, custom fields as they were when added to the cart.

At present, clicking on an item in the cart will display the associated product page and select the proper variant, but will not restore options selected, nor the content of custom fields.

Restoring the complete product detail as it appears in the cart is important for two reasons that come to mind, perhaps others.

The first is that the customer may be reviewing their selections prior to checkout - the current implementation will likely be the source of customer confusion. When clicking on the item in the cart, seeing the product detail / configuration that doesn't match what was added to the cart isn't ideal: "That's not what I ordered is it?"

The second is more a matter of convenience when the customer is purchasing multiple similar items. We offer custom printing where the customer must submit artwork for each line item in the cart. Some of the products are relatively complex with as many as 20 custom fields to prompt for various trim and fabrication options. Using vinyl banners as an example, they may want to order 10 banners at the same size and with similar trim options, each with a different design (requiring a unique line item in the cart for art submission). At present, they must interact with those 20 custom fields 10 times - a process that is prone to error and unnecessarily time consuming. We don't want to alienate customers that commonly make this type of volume order. If they find the process unnecessarily time consuming and prone to error, they won't bother, or may not come back to our site after going through it once.

Ideally the customer would be able to make the selections once, add the item to the cart with the first design / artwork, then click on the item in the cart to review...and add another (changing only those things that vary between banners).

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 2 months ago #250153

Hi,

Thank you for your feedback.

There is no system to do that.
Setting default value for the custom fields should be possible by just modifying the URL in the file "cart" of the view checkout" and adding the parameters coming from $row with a parameter name like item_data_XXX where XXX is the custom field name.
However, I'm not sure it will work fine with the ajax file or file custom field types.

Regarding the options, there is no preselection system so it would be more complex. You would first have to set custom parameters in the URL of the product in checkout/cart (the id of the variant), and then you would have to edit the product/option view file and take that value from the $_GET to use it instead of the default variant id in $variant->product_id

That's potentially something we could look into in the future. Now I'm not sure if that's something all merchants would want . Some might prefer to always go back to the default state when going back to the product page.

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

  • Posts: 113
  • Thank you received: 18
8 years 2 months ago #250230

Thanks Nicolas.
We are working with a developer on possible solutions and I'll pass this detail on to them.

In the interim, a couple of other ideas came to mind - with varying degrees of effort to implement.
One possible solution for those requiring multiples of a product with unique designs would be to retain the content of the custom fields when clicking 'Add To Cart'. At present, all custom fields are cleared when the item is added to the cart. If there was a way to bypass this (not clearing the custom field content), the customer would remain on the same product screen, select the next attachment / design and add another item to the cart with the same configuration, only the artwork changing.

Another idea would be to allow file submission after checkout. The order status would be set to "pending artwork" and a separate facility would present the items for which artwork is needed to finalize the order, with an upload prompt for each.

The last would be similar to the above, no artwork is required to add the item to the cart, status is pending after checkout. Subsequently, an email is sent to the customer with links to upload the artwork, the order number and line item are then associated with the file provided.

This seems a good opportunity for developers of commercial extensions / add-ons. Surprisingly, the only extensions I've found are for some other nameless eCommerce software - and those merely implement capabilities that are already part of Hikashop.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 2 months ago #250266

Hi,

1. It's not really that the custom fields are cleared, but that the page refreshes as the data is submitted. So since it's a new display of the page, the custom fields value is set to the default one.
Next version of HikaShop will have a complete new add to cart system with full ajax support which will allow a add to cart with custom item fields without a refresh of the page. Thus, what you want with that solution will be possible by default.

2. and 3. That won't do. If you add twice the same product to the cart without custom item fields filled in, the system will match them together and you'll get only one line of product in the cart with a quantity of 2. And there is no interface anyway to fill the custom item fields of an exisisting order for customers. So while it would still be possible, the modifications I explained in my previous message will be easier for your developer.

You don't see too many third party extensions for that because the default features of HikaShop already allow for much of what is necessary and then only small modifications with view overrides or a custom plugin allow to fill in the gaps without the need of a big development.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum