WordPress.org

Ready to get started?Download WordPress

Forums

Simple Cart & Buy Now
[resolved] custom cart? (4 posts)

  1. beau24
    Member
    Posted 1 year ago #

    hi - i love your cart - but i dont know how to handle the feature custom cart? could you explain what is that for?
    thx oliver

    http://wordpress.org/extend/plugins/simple-cart-buy-now/

  2. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    It is used for making a custom cart of items that normally aren't for sale on your site. Generally for one-off orders, but maybe special discounts, etc. Basically, it lets you put together a cart of items and prices and have the buyer go to some url and have that cart and put it into Paypal or Google Wallet. Maybe you have a new product, it isn't on the website yet or do you don't want it generally available yet.

    The functions getCustomCart($uuid), displayCustomCart($uuid), and displayCustomCartContents($uuid) in customize.php handle what to do and are meant to be customized for how you want to enter what should be in the custom cart. You can leave the display functions alone if you want however. getCustomCart is going to be specific to how you enter the data for this custom cart.

    When you go to the custom-cart url such as http://iguanaworks.net/custom-cart/?ccuuid=234243

    it checks to make sure a cart id (ccuid) has been passed. If it hasn't, it asks for the user it input the cart id. Then it calls displayCustomCart which is a function that basically makes a cart just like it would normally, but instead of looking at the items in the user's cart, it gets its items from the function getCustomCart. In my getCustomCart, it does a database call and find the list of items and their names, prices, etc. But you could do something else. It just needs to return a list of items in the cart in the format of the commented out code for that function.

  3. Kelly
    Member
    Posted 1 year ago #

    Thank you for this great and flexible plugin!!

    I would like a plugin to operate similar to your shopping cart. The site will have a number of tourist map locations to visit. Each location would have a post/page with a button "bucket list" that would add that location to a 'shopping cart' like list. A visitor could add the locations they would like to visit by pushing the button then the cart type list would have a button to save and/or email the list to the admin and themselves.

    I have looked but cannot find anything like it. Could you possibly create such a plugin?

  4. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    You could definitely do that. Basically, you would want to use the SCABN as the framework, but then create a custom template that in the checkout page would remove the Paypal / Google Wallet buy now buttons and a custom button / function for emailing, etc, the shopping cart contents.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.