We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Mark Bowen Shopping Cart Plug-in

Development and Programming

Mark Terpstra's avatar
Mark Terpstra
205 posts
15 years ago
Mark Terpstra's avatar Mark Terpstra

Mark, just checking to see if it’s already possible to check if an item is not in cart without using the {if:else}

So instead of this…

{if in_cart} content {if:else} content {/if}

Maybe do something like this..

{if in_cart =="FALSE"} content {/if}

or this…

{if not_in_cart} content {/if}

NOTE: This is not a critical need - I just wondered if it’s already possible and I’m just missing it.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
15 years ago
Mark Bowen's avatar Mark Bowen

Hi Mark,

Nope you’re not missing it should definitely work if you do this :

{if in_cart == FALSE}
Go ahead and add me
{/if}

Just take out the quotes and you should be good to go! 😊

Best wishes,

Mark

       
Mark Terpstra's avatar
Mark Terpstra
205 posts
15 years ago
Mark Terpstra's avatar Mark Terpstra
Just take out the quotes and you should be good to go! 😊

Ah, I see. I always forget when or when not to use quotes inside conditionals.

Thanks much.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
15 years ago
Mark Bowen's avatar Mark Bowen
Just take out the quotes and you should be good to go! 😊
Ah, I see. I always forget when or when not to use quotes inside conditionals. Thanks much.

No problem at all. Don’t forget to share the link to whatever you’re creating once it’s done (if you can that is? I can’t remember if you already sent me the link or not, need more sleep 😉 ) I’m sure others would love to see what you’ve done here.

Best wishes,

Mark

       
kev_horan's avatar
kev_horan
50 posts
15 years ago
kev_horan's avatar kev_horan

Hi -

I purchased the Shopping Cart Plug-In this weekend and its great, thanks Mark. I have a question which is similar to one earlier in this thread, posted by Optima.

Im testing using the Simple Commerce Module and your cart, and testing through the PayPal sandbox - both accounts are verified. Like Optima, I am not requiring membership for a purchase.

The transaction goes through fine, but the redirect isn’t happening. I’ve applied the empty cart code to my success template, but I mustn’t have set up the redirect properly, as I am not sent back to the site after the payment, and the cart remains full.

I’ve applied the appropriate redirect in the plugin templates and SCM code - am I missing something additional (and probably quite obvious)? You mentioned in your response to Optima that “You will need to get your payment processor to send the user back to a template which contains the empty cart plugin code”

Any help/advice would be appreciated. K

       
kev_horan's avatar
kev_horan
50 posts
15 years ago
kev_horan's avatar kev_horan

Got this sorted - I just needed to change the referring_page=”yes, once I’d cleaned my other errors up. Sigh.

K

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
15 years ago
Mark Bowen's avatar Mark Bowen

Hi Kevin,

Glad to hear you’ve sorted out the problem now. Sorry I hadn’t posted sooner but I only just got back from a 2 week holiday and have been quite jet-lagged due to our flight plans being delayed. We were up for nearly 30 hours traveling so still quite not with it 😉

Glad you found the referring_page=”yes” parameter though as that would have been my first guess.

Hope everything goes well for you with your site.

Best wishes,

Mark

       
kev_horan's avatar
kev_horan
50 posts
15 years ago
kev_horan's avatar kev_horan

Thanks Mark - and no need to explain - you deserve a holiday. Seems like every time I hit a snag on an EE project you’ve already put together a solution…

Hope you had a good break.

cheers Kevin

       
Milan Topalov's avatar
Milan Topalov
128 posts
15 years ago
Milan Topalov's avatar Milan Topalov

Mark, are you planning any updates for the plugin?

Mine works fine, but would love to see PayPal encrypted payment option - and any other improvements you may add 😊

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
15 years ago
Mark Bowen's avatar Mark Bowen
Mark, are you planning any updates for the plugin? Mine works fine, but would love to see PayPal encrypted payment option - and any other improvements you may add 😊

Hiya,

I am always adding in new features whenever I can and was indeed looking at encryption and did get it to work at one point although it meant a lot of PHP in templates as the encryption part couldn’t go directly into the plugin. I can’t exactly remember why it was but just remember that it was a little harder to do than I had originally imagined so had put that on the back-burner for a while.

I will definitely be updating the plugin for 2.0 as soon as I get the time though.

Best wishes,

Mark

       
Jan Vantomme's avatar
Jan Vantomme
18 posts
15 years ago
Jan Vantomme's avatar Jan Vantomme

I purchased the shopping cart from eetemplates a while ago but some things seem to be missing. I don’t seem to have a already_added function in the plugin I’ve downloaded. The empty_cart function also does not work.

I also need to show a photo of the product in the shopping cart but using the weblog entries tag with the entry_id doesn’t seem to work within the shopping_cart_functions tag.

Would be great if you could help me out on this one. Beta version of the website needs to be launched next week.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
15 years ago
Mark Bowen's avatar Mark Bowen

Hi Jan,

I don’t seem to have a already_added function in the plugin I’ve downloaded.

Sorry that function was added in after the plugin was released for one user that needed it. If you would like a copy though then please PM me your e-mail address and I will send over the new file as soon as possible.

The empty_cart function also does not work.

The new version that I can e-mail over to you should fix this problem up right away. Minor mistake on my part.

I also need to show a photo of the product in the shopping cart but using the weblog entries tag with the entry_id doesn’t seem to work within the shopping_cart_functions tag.

If you have followed the documentation to the letter then you should definitely be able to show anything from your weblog entry within your shopping cart as all the plugin does is supplies the entry_id to the weblog tag which shows the item(s) that the user wants to purchase. What information you then show to people is down to how you code the inner part of your weblog tag. In simple terms it’s something like this :

{exp:shopping_cart_functions cart_name="shop" parse="inward"}
{if no_results}
There appears to be nothing in your cart! Go ahead and <a href="http://{path=%27cart%27}" title="Add Items">add some items now</a>
{/if}

{exp:weblog:entries weblog="products" limit="1" entry_id="{entry_id}"}

…Place any custom weblog variables here that you would like to show just as you would normally with a weblog tag…

{/exp:weblog:entries}


{if count == total_results}
<hr >
<h3><b>Total Cost = £{total}</b></h3>

{if cart_qty == 0}
<h4>You currently have no items in your cart</h4>
{if:elseif cart_qty == 1}
<h4>You currently have {cart_qty} item in your cart</h4>
{if:else}
<h4>You currently have {cart_qty} items in your cart</h4>
{/if}

{/if}


{/exp:shopping_cart_functions}
Would be great if you could help me out on this one. Beta version of the website needs to be launched next week.

Please go ahead and PM me your e-mail address and I’ll send out the new version to you as soon as I get that.

Best wishes,

Mark

       
Jan Vantomme's avatar
Jan Vantomme
18 posts
15 years ago
Jan Vantomme's avatar Jan Vantomme

I’ve got most of the shopping cart working yesterday. I forgot to add parse=”inward” to the shopping_cart_functions tag. All the custom weblog fields I need work now. I’ve sent you a PM with my email.

thanks for helping me out.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
15 years ago
Mark Bowen's avatar Mark Bowen

Hi Jan,

New version of the plugin just sent across to you via e-mail. Hope this gets everything sorted out for you.

Best wishes,

Mark

       
beatnikrob's avatar
beatnikrob
5 posts
15 years ago
beatnikrob's avatar beatnikrob

Hi Mark,

I’m looking for a e-commerce module for EE that will allow me to sell serial numbers for my game (plug : www.plainsightgame.com) - would your module allow me to do this ?

Cheers

Robin

       
First 6 7 8 9 10 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.