WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Simple Paypal Shopping Cart
[resolved] Clicking "Add to Shopping Cart" Does Nothing (8 posts)

  1. dwarro
    Member
    Posted 2 months ago #

    My "Add to Shopping Cart" button does not seem to be working and I can't understand why? When I click on it all it does is redirect me right back to the same page and does not send me to paypal or list a shopping cart underneath as the video tutorial demonstrates?

    The website is FoodBodyFitness.com and you can take a look under women's apparel or men's apparel. Both have the same issues.

    If you maybe could take a look at the coding below and let me know what is going on I would greatly appreciate it. Is it because I have numerous items listed on the same page? The shopping cart worked when I had only one item on the page, but when I added two+ items to the page it does not work anymore?

    Here is an example of the first 3 items I have listed under "Men's apparel":

    [wp_cart_display_product name="Food Body Fitness Black T-Shirt" price="14.95" thumbnail="http://foodbodyfitness.com/wp-content/uploads/2014/05/FBF-Black-Mens-resize.jpg" shipping="3.99" var1="Size|Large|X-Large"

    [show_wp_shopping_cart]

    [wp_cart_display_product name="Food Body Fitness Grey T-Shirt" price="14.95" thumbnail="http://foodbodyfitness.com/wp-content/uploads/2014/05/FBF-Gray-Mens-resize.jpg" shipping="3.99" var1="Size|Medium|Large|X-Large"

    [show_wp_shopping_cart]

    [wp_cart_display_product name="Food Body Fitness Blue T-Shirt" price="14.95" thumbnail="http://foodbodyfitness.com/wp-content/uploads/2014/05/FBF-Blue-Mens-resize.jpg" shipping="3.99" var1="Size|Medium|Large|X-Large"

    [show_wp_shopping_cart]

    Thanks in advance as I am trying to get this launched today!

    Cheers!

    https://wordpress.org/plugins/wordpress-simple-paypal-shopping-cart/

  2. mbrsolution
    Member
    Posted 2 months ago #

    Hi dwarro can you remove all but one

    [show_wp_shopping_cart]

    See if that works.

    Kind regards

  3. mra13
    Member
    Plugin Author

    Posted 2 months ago #

    Hi, please add the following shortcode somewhere on that page so I can be sure that the cart shortcode is there:

    [always_show_wp_shopping_cart]
  4. dwarro
    Member
    Posted 2 months ago #

    Thanks for all the help on this:

    1) mbrsolution: removing all but one leaves me with only one product showing. Meaning all of the other products disappear except for the one that the has [show_wp_shopping_cart]. So that was a no go unfortunately

    2) mra13: I have added the cart shortcode [always_show_wp_shopping_cart] and now I can see the shopping cart there, but it randomly selects whatever it chooses to be the first item? Even if you go to men's apparel it will have the women's pink racerback tank top as the first item. But, at least the cart is showing with the paypal option.

    Is there anything I can do now in order to avoid the plug-in from randomly selecting a piece of apparel? Or is there any way to not "always have the wp shopping cart showing" but still give the individual the option of clicking the "add to shopping cart" button and having the shopping cart appear?

    Take a look at the Apparel portion (Men and Women) for FoodBodyFitness.com and let me know what you think! At least I have something going for me now. I left it up there so you can take a look and see if you can figure something out. Thank you so much!

  5. mbrsolution
    Member
    Posted 2 months ago #

    Hi sorry for my bad explanation. What I meant by

    remove all but one

    was as follow.

    [wp_cart_display_product name="Food Body Fitness Black T-Shirt" price="14.95" thumbnail="http://foodbodyfitness.com/wp-content/uploads/2014/05/FBF-Black-Mens-resize.jpg" shipping="3.99" var1="Size|Large|X-Large"]
    
    [wp_cart_display_product name="Food Body Fitness Grey T-Shirt" price="14.95" thumbnail="http://foodbodyfitness.com/wp-content/uploads/2014/05/FBF-Gray-Mens-resize.jpg" shipping="3.99" var1="Size|Medium|Large|X-Large"]
    
    [wp_cart_display_product name="Food Body Fitness Blue T-Shirt" price="14.95" thumbnail="http://foodbodyfitness.com/wp-content/uploads/2014/05/FBF-Blue-Mens-resize.jpg" shipping="3.99" var1="Size|Medium|Large|X-Large"]
    
    [show_wp_shopping_cart]

    But now instead of [show_wp_shopping_cart] add what @mra13 suggested

    [always_show_wp_shopping_cart]

    Regards

  6. mbrsolution
    Member
    Posted 2 months ago #

    Please make sure that each individual shortcode ends with the ] bracket.

    Regards

  7. dwarro
    Member
    Posted 2 months ago #

    Ok, so I honestly don't know if I've fixed the problem or just side stepped it. Now when I go to my page FoodBodyFitness.com, I see at the bottom "Your Shopping Cart is Empty." Now, I don't know if this is just my computer remembering that I deleted the original order it had when it randomly placed an item in the cart after adding the shortcode [always_show_wp_shopping_cart] to the end of my page or not.

    But as of right now it is working and the cart is not just showing up everytime I go to Women's or Men's Apparel. But, I do not have another computer to check this on.

    mbrsolution: Removing all of the shortcodes and just adding [always_show_wp_shopping_cart] to the end still leaves me with the same problem of just showing my hat as an item considering it is the last piece of apparel on the page.

    So as of right now this is how the visual looks and it "seems to be working:

    [wp_cart_display_product name="Food Body Fitness Pink Racerback" price="15.95" thumbnail="http://foodbodyfitness.com/wp-content/uploads/2014/05/FBF-Womens-Pink-resize.jpg" shipping="0.001" var1="Size|Large"

    [show_wp_shopping_cart]

    [wp_cart_display_product name="Food Body Fitness Green Tank" price="13.95" thumbnail="http://foodbodyfitness.com/wp-content/uploads/2014/05/FBF-Womens-Blue-resize.jpg" shipping="0.001" var1="Size|Small|Large"

    [show_wp_shopping_cart]

    [wp_cart_display_product name="Food Body Fitness Blue Running Shorts" price="14.95" thumbnail="http://foodbodyfitness.com/wp-content/uploads/2014/05/FBF-Womens-Shorts-Blue-resize.jpg" shipping="0.001" var1="Size|Small|Medium|Large"

    [show_wp_shopping_cart]

    [wp_cart_display_product name="Food Body Fitness Black Hat" price="19.95" thumbnail="http://foodbodyfitness.com/wp-content/uploads/2014/05/FBF-Hat-Black-resize.jpg" shipping="0.001"

    [show_wp_shopping_cart]

    [always_show_wp_shopping_cart]

  8. mbrsolution
    Member
    Posted 2 months ago #

    Hi @dwarro is your issue resolved?

Reply

You must log in to post.

About this Plugin

About this Topic