Tips and Tricks HQ Support Portal › Forums › Simple PayPal Shopping Cart › Simple Shopping Cart Tweaks › Shopping Cart on Sidebar Wide
Tagged: PHP, shopping cart widget size
- This topic has 7 replies, 4 voices, and was last updated 14 years, 9 months ago by Mike.
-
AuthorPosts
-
December 13, 2009 at 6:09 pm #549websiteMember
Hello,
I added the shopping cart widget but it’s too wide for my sidebar.
How can I adjust it so it doesn’t take the full width?
December 13, 2009 at 10:48 pm #16675amin007ParticipantThe shopping cart is fluid and will try to adjust to the container. So it will adjust nicely on sidebars of different width but if your sidebar is too narrow then it won’t be able to fit properly. The width at least needs to be a size so the heading for each column (Item Name, Quantity, Price) can fit in one line otherwise the cart looks funny.
You can place the shopping cart on a separate page (For example: checkout page) if your sidebar is too narrow. Checking the following option in the eStore settings will make it so when someone adds a product to the cart it will automatically redirect to that page.
Automatic redirection to checkout page
February 1, 2010 at 3:57 pm #16676MikeMemberI’d like to add a widget to my sidebar showing just one of my products with a picture of the product and a buy now button. Is that possible?
February 1, 2010 at 7:17 pm #16677TinkBDMemberHi Mike – Oops! I missed that this was a Simple Shopping Cart question. I use the WP eStore Plugin. Having said that, you might be able to accomplish things in a similar manner. Sorry for the confusion!
For the WP eStore Plugin –
I just ran a test using the Fancy Code, so I ended up with the Product picture, description and Add to Cart button… so yes, it is possible. It stacked things to fit but it doesn’t look bad. Note – on this site I am running one fairly wide (@ 330 Pixels) sidebar on the right.
I used the PHP Widgetify Plugin. You will need to include the full PHP code, not just the short code…
<?php echo show_product_fancy_style(; ?>
I know that you asked about using a Buy Now button, so you might have to do some mods… but definitely, it can be done with the Add to Cart option!
Tink
February 2, 2010 at 1:35 am #16678MikeMemberThank you so much. I use wp eStore. Unfortunately I don’t know how to do any modifications at all. It actually showed up in my side bar with a buy now button but when I click on it nothing happens. heres my link if you want to check it out. It’s in the side bar. Any ideas? http://crosscampusministry.com
February 2, 2010 at 2:05 am #16679amin007ParticipantThe button you added has the name “Buy Now” but it’s actually an “Add to Cart” button so when you click on it the item is getting added to the cart. Since you are not displaying the Shopping cart you are not seeing the item in the cart.
If you want to place a “Buy Now” type button (a button when clicked takes you directly to paypal for payment) then use the following function:
<?php echo print_eStore_buy_now_button(1); ?>
1 is the Product ID here.
February 2, 2010 at 2:12 am #16680TinkBDMemberHi Mike – I don’t know enough to be able to tell you what the problem is…
When I look at the code, it appears that you are using the exec php widget to display the Every Christian Students Guide product.
So… If you place the following code in the Exec PHP Widget
<?php echo show_product_fancy_style(X); ?>
and replace the X with the Product ID number of the chosen product, it may work for you.
Sorry I can’t be more help!
Tink
February 2, 2010 at 3:17 pm #16681MikeMemberThanks so much TinkBD and admin. It is working now. Great plug-in.
-
AuthorPosts
- You must be logged in to reply to this topic.