Can you help me to know how to change display of item on my product page

  • Posts: 190
  • Thank you received: 2
5 years 9 months ago #306878

-- url of the page with the problem -- : www.veggievore.com/advice/one-hour-custom-coaching-consultation
-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.6
-- PHP version -- : 7.3.3
-- Error-message(debug-mod must be tuned on) -- : I am not having an error message. I am just looking for guidance on changing a layout.

I have created an item that displays on two product pages which is named "I Accept" whiich is a checkbox that needs to be checked in order to purchase the products. Currently I have that checkbox at the bottom of terms for an agreement to make the purchase. But, it is awkward because right now I have people getting confused.

When they click on the Add to Cart button a popup displays a message asking them to read the terms and then click the I Accept checkbox. But, they then have to scroll back to the top of the page to click on the Add to Cart button.

I would like to do one of two things both of which seem like reasonable solutions to me.

Option 1: Move the I Accept checkbox and text to just below the Add to Cart button.

Option 2: Add an additional Add to Cart button just below the current "I Accept" item.

Can you give me some idea of what file i will need to edit and where I would find the code to identify the "Add to Cart" button and the "I Accept" item.

thank you, Sean

Attachments:
Last edit: 5 years 9 months ago by scarney.

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
5 years 9 months ago #306880

Hello,

First, a little trick to get an answer to your question about the view to edit :
=> Go to Main HikaShop Configuration (Components => HikaShop => Configuration), then click on Advanced tab, in the first part, called Advanced settings tou will find the "Display view files" option, select Front-end to see the view name display directly on your frontend to see which one manage your page (and his sub view for some part).

This can help you to manage your override works, but in order to better guide you, can you provide an Url link in order to better understand context ?

Awaiting news from you to move forward.
Regards

Last edit: 5 years 9 months ago by Philip.

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

  • Posts: 190
  • Thank you received: 2
5 years 9 months ago #306934

Thank you very much. These are the two urls:

www.veggievore.com/advice/half-hour-cust...oaching-consultation

www.veggievore.com/advice/half-hour-cust...oaching-consultation

I will check out the path you just sent me and see if I can figure it out.

Sean

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
5 years 9 months ago #306969

Hello,

Ok, you have to create an override view of your view (show_default, show_reversed or show_tabular, depends from your product page configuration).
See this tutorial to see how to proceed, here .

You have to look for "$this->element->extraData->bottomMiddle" or "$this->element->extraData->bottomEnd" (so far I don't know which display your custom Item), then copy paste the whole line like show on my screenshot :



Then, you have to look for the code part that manage your "Add to cart" button, for this look for "hikashop_product_quantity_main" and paste the previous code part



Hope this will help you achieved your needs.
Regards

Last edit: 5 years 9 months ago by Philip.

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

Time to create page: 0.066 seconds
Powered by Kunena Forum