Relocate Add To Cart Button After Deactivating Legacy Mode

  • Posts: 34
  • Thank you received: 0
7 years 2 months ago #288971

-- 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?

Attachments:
Last edit: 7 years 2 months ago by jimphillips.

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

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
7 years 2 months ago #288995

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.

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.

  • Posts: 34
  • Thank you received: 0
7 years 2 months ago #289376

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.

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
7 years 2 months ago #289411

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: 7 years 2 months ago by Philip.

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

  • Posts: 34
  • Thank you received: 0
7 years 2 months ago #289449

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.059 seconds
Powered by Kunena Forum