Jump to:

2088 Posts in 1008 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » no product titles/descriptions in order

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1009 Views
  • r_jake
    Avatar
    Community Member
    5 Posts

    no product titles/descriptions in order Link to this post

    Am using SS 2.3.0 with the latest stable release (0.5.2) of the Ecommerce module, along with the new PayPal plug in created by Nicolaas. Having a number of difficulties, but mainly my products are only appearing as internal item numbers (which are quite random) when the info is sent through to PayPal. This makes it awkward, if not impossible, for the client to work out what they are supposed to dispatch. How can I get the info to send the product name or code?

    I noticed in a previous post that 0.5.2 was incompatible with 2.3.0? I tried using the trunk but it didn't seem to work at all, and I need 2.3.0 because of the need to customise Tiny MCE.

    Any suggestions appreciated.

  • Briohny
    Avatar
    Community Member
    199 Posts

    Re: no product titles/descriptions in order Link to this post

    I'd like to know this too...

  • r_jake
    Avatar
    Community Member
    5 Posts

    Re: no product titles/descriptions in order Link to this post

    Hi Briohny,

    I contacted Nicholaas about this and basically the whole PayPal module is still in development and isn't really ready yet. Aside from the problem with it not submitting useful item names to PayPal, the whole reports section is incompatible with 2.3.0. and there are plenty of other bugs that I spent a couple of weeks trying to fix before I gave up. Apparently it's going to be ready soon - maybe the steaks will be raised now that 2.3.0 is a stable release...

    What I did in the end was strip out all the fancy stuff and just added PayPal submission buttons to the Product.ss and ProductGroupItem.ss and Cart.ss templates. Instead of using static values in the button code for the submission of the item name and price I inserted SS variables:

    <input type="hidden" name="item_name" value="$Title"/>
    <input type="hidden" name="amount" value="$Price"/>

    I've then removed the checkout and account pages so everything is done on through PayPal site. The only other thing that needs to be set up is the creation of 'successful' and 'cancel' pages that PayPal directs the user to when they exit.

    It's rough and ready, but it works, and still allows the content manager to add new items without having to manually insert or edit any PayPal code.

    Until we have a functioning PayPal module this is the only way to do it using 2.3.0 as far as I can see.

    Hope that helps.

  • Briohny
    Avatar
    Community Member
    199 Posts

    Re: no product titles/descriptions in order Link to this post

    Thanks r-jake for getting back to me.

    Do I need to change any other eCommerce code or files... or is it just the .ss templates?
    Would you be able to provide me with the sample code you used for the Product.ss, ProductGroupItem.ss and/or Cart.ss to make sure that i'm understanding correctly?

    Many thanks for your reply.

    Cheers,
    Briohny

  • r_jake
    Avatar
    Community Member
    5 Posts

    Re: no product titles/descriptions in order Link to this post

    Hi Briohny

    I've attached the templates that I used. As far as I remember (it was a couple of weeks ago now) you don't need to alter anything else, as all the SS payment processing stuff is bypassed and the user is sent straight to PayPal. You just have to create some extra pages for the users to return to.

    You can see what I have done in action by going to:

    http://www.rainbow-taichi.org.uk/site/online-store/

    These templates have been set up to use GBP as their currency, and the user is sent to the British PayPal site, so you will probably have to change this. They also just use the default PayPal button graphics, which you may want to change.

    Attached Files
  • Briohny
    Avatar
    Community Member
    199 Posts

    Re: no product titles/descriptions in order Link to this post

    Great... thanks r_jake. I'll give this a shot tonight. Don't suppose you know how to add other attributes like colour and size? Just checking!

    Thanks again. You've been a great help.

    Cheers.

    1009 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.