LIMITED OFFER: Save $200 Today! - Get All Themes For $199 -- Learn More

Ask the community

This is a community support forum where you can ask
questions and interact with other PremiumPress Customers.

add to cart button problem


  • Stephen
    Newbie 0 points
    July 11, 2013 at 3:02 pm

    Hi, the add to cart button on the gallery page (ie within a category) does not add the product to the cart but it displays the product detail page. This seems confusing, surely it should just add the item to the cart?

  • Brandon
    Brandon
    Titan 709 points
    July 11, 2013 at 4:17 pm

    it does not. This is something I have wanted for sometime.

    If anyone knows the code we can use please let us know.

  • David Harris
    David Harris
    Senior Member 367 points
    July 11, 2013 at 5:14 pm

    Just change the txt to ‘More info’ in _item.php I believe.

  • Brandon
    Brandon
    Titan 709 points
    July 14, 2013 at 6:19 am

    David did you ever figure out how to change the Add to Cart to More Info

  • Mark Fail
    Mark Fail
    Super Guru 12,885 points
    July 14, 2013 at 6:24 am

    IS this just a text change? (did you check the language file?)

  • David Harris
    David Harris
    Senior Member 367 points
    July 14, 2013 at 6:24 am

    Not looked at it since the last post, but I think that _item.php needs modifying so it can be used in the other themes, the answer must be in there because it works for the default theme, wish Mark would chip in.

  • David Harris
    David Harris
    Senior Member 367 points
    July 14, 2013 at 6:24 am

    lol, spoke too soon. :)

  • David Harris
    David Harris
    Senior Member 367 points
    July 14, 2013 at 6:25 am

    Mark if you alter it in the lang file the main buy button changes as well but with the default theme you just edit _item.php but the other themes don’t have this option.

  • Brandon
    Brandon
    Titan 709 points
    July 14, 2013 at 6:27 am

    see picture. we would like the Add to Cart on the Related Products to read More Info

    Reason for this is Add to Cart does not really add to cart.

    Attachments:
    You must be logged in to view attached files.
  • David Harris
    David Harris
    Senior Member 367 points
    July 14, 2013 at 6:30 am
  • Ian
    Ian
    Super Guru 1,200 points
    July 14, 2013 at 6:44 am

    I remember how I did it now, in _item.php around line 85

    a href="<?php echo get_permalink($GLOBALS['post']->ID); ?>"><span class="add-box"><span><?php echo $PPT->_e(array('sp','2')) ?></span></span></a>

    Change ‘sp’,’2′ to ‘button’,’13’

    button 13 is already set to ‘More Info’

  • Brandon
    Brandon
    Titan 709 points
    July 14, 2013 at 6:50 am

    Ian, there is no _item.php file in the ShopperPress-Classic-Shop folder.

    Do I copy the file from the template_shopperpress folder and then insert you code.

    And final step would be to upload the file to the ShopperPress-Classic-Shop folder

  • Ian
    Ian
    Super Guru 1,200 points
    July 14, 2013 at 6:52 am

    Alternatively you could find ‘sp’,’2′ in system_customdesign.php and change it to ‘sp’,’_side5′ and then change the wording to sp 2 in the language file.

  • Ian
    Ian
    Super Guru 1,200 points
    July 14, 2013 at 6:53 am

    @Brandon, it uses the _item.php in the template folder I think.

  • Brandon
    Brandon
    Titan 709 points
    July 14, 2013 at 6:58 am

    What do you mean Language file. Where is the language file

Viewing 15 posts - 1 through 15 (of 30 total)