bluey80
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Cart & Buy Now] Add to cart doesn’t appearIt is probably an issue with your theme for a plugin. Can you try using a default WordPress theme and seeing if that fixes the issue? If it doesn’t, try disabling other plugins.
Forum: Plugins
In reply to: [Simple Cart & Buy Now] Big problem with apostropheCan you try escaping the character with a backslash:
L’Aurora -> L\’Aurora
That should get the ‘ character into the name field.
Let me know if that works.
Forum: Plugins
In reply to: [Simple Cart & Buy Now] Ajax Add to cartI’m starting to work on a more AJAX version of SCABN, which should be faster and also make it easier to integrate with other payment platforms. If anyone wants to help with this development, or has some AJAX code working that they’d like to contribute, but please let me know. Or put a pull request at https://github.com/IguanaBen/scabn (ajax branch)
Thanks
Forum: Plugins
In reply to: [Simple Cart & Buy Now] Ajax Add to cartIf you get your AJAX code working and want it incorporated into SCABN, you can do a pull request against https://github.com/IguanaBen/scabn
Thanks!
Forum: Plugins
In reply to: [Simple Cart & Buy Now] Ajax Add to cartThe cart stores a random number that gets updated after every action. The purpose of this is to catch reload and other events from triggering extra add to carts. (Maybe this is unnecessary with AJAX requests). So, yes, you need to get the random id before doing an submission of changing the cart. Glad you got it working.
Forum: Plugins
In reply to: [Simple Cart & Buy Now] Ajax Add to cartSo, right now there is no AJAX. When you click add to cart, it uses $action_url = get_permalink so the action url is the url you are current on. This way you load the same page (again). This time with some POST variables that SCABN parses to add to the shopping cart. The ‘add to cart’ functionality is really on every page with the SCABN shopping cart.
Not that this is the right way to do things. Ideally, SCABN would just be a set of REST queries and then AJAX handles all the add to cart, display cart, etc. I’ve played around a little bit with this, but haven’t gotten very far.
If you want work on this and get your improvements back in SCABN, please let me know. I’d probably put SCABN up on github and have you do pull requests unless you prefer something else.
(see https://code.tutsplus.com/tutorials/a-primer-on-ajax-in-the-wordpress-frontend-understanding-the-process–wp-27052 for some basic wordpress ajax stuff. Once setup, those new urls would be the actions for the AJAX instead of the get_permalink().
Please let me know if you have more questions / how the AJAX stuff is going.
Forum: Plugins
In reply to: [Simple Cart & Buy Now] Discount itemsNot yet. It is on my todo list, but I haven’t gotten around to it.
Forum: Plugins
In reply to: [Simple Cart & Buy Now] Issues with Paypal IPN.SCABN doesn’t handling IPN. SCABN gets your customer to Paypal’s site to place an order. After an order is placed, you can use IPN for paypal to notify you that an order has placed. Typically whatever is handling your backend (storing inventory, customer info, what was ordered, when etc) also handles IPN as that is where the data is going. SCABN doesn’t need any of the information IPN provides.
Forum: Plugins
In reply to: [Simple Cart & Buy Now] No 'buy now' Paypal buttonHave you entered all the required Paypal information into the SCABN settings page? (Also, we longer support Google Wallet as Google Wallet no longer supports carts and payments and is now just a CC storage thing).
Forum: Plugins
In reply to: [Simple Cart & Buy Now] Errors in PHP 5.5 in debugShould be fixed in 2.1.4
Sure. Take a look at https://plugins.trac.www.ads-software.com/browser/simple-cart-buy-now/trunk/classes/backend.php for some of the code.
You’ll want something like
$cart = $_SESSION['wfcart'];
To get the customer’s cart. I think you could do print_r php function to turn that array into something readable. Then use the mail function to send that email. Look at function request() section for passing a form variable (like email) to the backend for it to trigger sending the email. Then the button to send the email will need be a form with that info. See https://plugins.trac.www.ads-software.com/browser/simple-cart-buy-now/trunk/classes/display.php and the display_add_to_cart function to see an example form.
Ahh, in that case I don’t think it would be too hard to implement. Add a function to email the cart and have add a button on the checkout page to call that function. It isn’t too high on my todo list for SCABN, although I want do add a quote functionality which will be very similar — fill out at cart and then send an email internally that would be used to generate an official quote or maybe place an order once some payment happens offline.
Short answer is no. It is tricky because how do you do payment? You don’t want to send credit card information over email. So how / when do you do payment information?
Forum: Plugins
In reply to: [Simple Cart & Buy Now] Orders logI still think SCABN can’t know what you want because it doesn’t know what orders actually get placed, only when someone redirects to the checkout page on Paypal. Also I’m not sure were to display this information (admin page on WP?). I would think it would be simpler / better to put this with whatever is handling your IPN in the first place, so when you get an order it dumps the order into a database.
If you want do access this info within WP, you could have your IPN processes script push data to the WP database and have some WP plugin read that database.
Forum: Plugins
In reply to: [Simple Cart & Buy Now] Orders logI’m not sure what you mean — do you want WP to store all orders for an admin to see? Or do you want customers to see their order history? In either case, SCABN doesn’t have access to that information. Once it passed the customer off to Paypal, it doesn’t know if the order gets placed, etc. For a order log, you’ll need to use Paypal or something that interacts with Paypal (IPN for example).