Skip to main content

Relocate Add To Cart Button After Deactivating Legacy Mode

8 years 8 months ago - 8 years 8 months ago #288971 by jimphillips
-- url of the page with the problem -- : henchmode.com/product/65-strength-t-shirt-white
-- HikaShop version -- : 3.3.0
-- Joomla version -- : 13.1.0
-- PHP version -- : 7.1.13

Deactivating legacy mode for the "Add to cart" button has caused the button to relocate to a different position on the product page.

Can you advise which view I need to access, which piece of code I need to relocate and where it needs to be placed in order to get the button to return to the position it was in whilst in legacy mode?
Last edit: 8 years 8 months ago by jimphillips.

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

8 years 8 months ago #288995 by Jerome
Hello,

It would require to analyze the CSS of your website to understand why that button is below.
www.hikashop.com/support/documentation/1...the-display.html#css

Regards,

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

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

8 years 8 months ago #289376 by jimphillips
I don't think it is the CSS.

Whenever legacy add to cart is activated, the button is contained within the last cell of the table in "product / quantity.php"

Whenever I turn off legacy mode, the button relocates to outside of the table. Is this not something to do with the PHP in the "product / quantity.php"

Also, in the link that you posted, the information says that "In the edition page, you can find all the different parts between the HTML comments."

I am going to Display > Views > relevant file but I do not see HTML comments in any of the files which I look at?

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

8 years 8 months ago - 8 years 8 months ago #289411 by Philip
Hello,

As Jerome said, the point may be Css, I can be sure of it because switch to legacy mode or not don't leads the add to cart button to move.
But the add to cart button class change from "button hikashop_cart_input_button" to "hikabtn hikacart", that's why before touch the Html/Php structure, the most simple is maybe to adapt the Css.

Regards
Last edit: 8 years 8 months ago by Philip.

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

8 years 8 months ago #289449 by jimphillips
Ok, thanks guys. I'll keep working on it.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum