"ADD TO CART" BUTTON DOES NOT WORK ON PRODUCT PAGE

WordPress Business Themes Forums Version 7 Themes ShopperPress "ADD TO CART" BUTTON DOES NOT WORK ON PRODUCT PAGE

Discontinued - The forum content is out of date. For theme support please use our support desk here.

"ADD TO CART" BUTTON DOES NOT WORK ON PRODUCT PAGE

January 18, 2018
Jeffrey Jeffrey
  • Jeffrey
    Jeffrey
    Newbie 38 points

    The product page for each item has a large “ADD TO CART” button on the top right. This button has never worked. However, at the bottom of the page is a product carousel and the “ADD TO CART” button works on all of those.

    example: http://packaged-gases.com/listing/gas-cylinder-argon/

    Attachments:
    You must be logged in to view attached files.
    January 18, 2018 at 3:57 pm
  • Jeffrey
    Jeffrey
    Newbie 38 points

    product carousel

    Attachments:
    You must be logged in to view attached files.
    January 18, 2018 at 4:20 pm
  • Marie
    Marie
    Super Guru 1,747 points

    hi Jeffrey,

    create a ticket for this please so we can check the button, seems like its only a setting issue.

    ticket url : http://premiumpress.com/ticket/

    January 19, 2018 at 2:28 am
  • JamesD
    JamesD
    Super Guru 1,345 points

    Hello Jeffrey,
    There’s an error with the javascript that handles that action, possibly a file encoding conflict.

    Something like this can happen after editing a file and saving it with different encoding (this is set within the editing software settings) or when uploading files if using an incorrect transfer mode, so the same method would not work. (i.e. text files and images are transferred differently, images use ‘binary’ mode and text files use ‘text’),

    I’d be happy to take a look at your ‘/ST/framework/class/defaults_cart.php’ file if you could zip it up and attach it here.

    January 19, 2018 at 3:00 am
  • Jeffrey
    Jeffrey
    Newbie 38 points

    Thank you. Here it is.

    Attachments:
    You must be logged in to view attached files.
    January 19, 2018 at 5:13 am
  • JamesD
    JamesD
    Super Guru 1,345 points

    Hi Jeffrey,

    I went line by line in two files (with a fresh file and the one I have installed), but the main differences had to do with spacing of some sort (i.e. tabs, space, newlines…etc).

    Everything else looked ok, so I would think just replacing the file should fix it..

    This is a fresh ST theme file. Rename your current ‘defaults_cart.php’ file and place this file in it’s place and it should work.

    Note: The file was taken from the v8.9.7 Shopping Theme.

    Attachments:
    You must be logged in to view attached files.
    January 19, 2018 at 10:03 pm
    This reply was awarded the best answer by the topic poster.
  • Jeffrey
    Jeffrey
    Newbie 38 points

    Great! It worked! Thank you very much

    January 26, 2018 at 8:57 pm
  • JamesD
    JamesD
    Super Guru 1,345 points

    My pleasure Jeffrey, glad it helped.

    Have a pleasant weekend.

    January 26, 2018 at 9:23 pm

  • Geoff
    Newbie 3 points

    Im having the same issue, i believe. My button sends me back to home page on certain items that have attributes added to them. Thanks in advance for any assistance

    June 4, 2018 at 8:38 pm
  • Marie
    Marie
    Super Guru 1,747 points

    hi geoff,

    your issue was resolved via ticket system

    The caused was with your pages & buttons from Theme setup > General setup. those were not set.

    June 5, 2018 at 10:02 am
Viewing 10 posts - 1 through 10 (of 10 total)

Didn't find what you were after?

Chat with us now

or contact our support team