Jump to:

2088 Posts in 1008 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Working on e-commerce for SS 2.4

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 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Go to End
Author Topic: 13318 Views
  • DaveTh
    Avatar
    Community Member
    14 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    My CMS/"page" layout is corrupted, other than that, the specified branches e-commerce module seems to work
    even though it keep complaining many warnings and javascript parser error.

  • CHD
    Avatar
    Community Member
    218 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    here's my cart.ss:

    <% control Cart %>
       <div id="ShoppingCart" class="typogrpahy">
          <h3>Shopping Basket</h3>
          <% if Items %>
             <ul>
                <% control Items %>
                   <% if ShowInCart %>
                      <li id="$CartID" class="$Classes">
                         <span class="itemdetails">
                            <span<% if Link %><% else %> id="$CartTitleID"<% end_if %> class="title">
                               <% if Link %>
                                  <a id="$CartTitleID" href="$Link" title="<% sprintf(_t("READMORE","Click here to read more on &quot;%s&quot;"),$CartTitle.XML) %>">$CartTitle.XML</a>
                               <% else %>
                                  $CartTitle.XML
                               <% end_if %>
                            </span>
                            <span class="price">
                               <% _t("PRICE","Price") %>: $UnitPrice.Nice
                            </span>
                            <span class="quantity">
                               Quantity:
                               <strong>
                                  <a class="ajaxQuantityLink" href="$removeLink" title="<% sprintf(_t("REMOVEONE","Remove one of &quot;%s&quot; from your cart"),$CartTitle.XML) %>">
    -
                                     <!--<img src="ecommerce/images/minus.gif" alt="-"/>-->
                                  </a>
                               </strong>
                               <% if AjaxQuantityField %>
                                  $AjaxQuantityField
                               <% else %>
                                  $Quantity
                               <% end_if %>
                               <strong>
                                  <a class="ajaxQuantityLink" href="$addLink" title="<% sprintf(_t("ADDONE","Add one more of &quot;%s&quot; to your cart"),$CartTitle.XML) %>">
    +
                                  <!--   <img src="ecommerce/images/plus.gif" alt="+"/>-->
                                  </a>
                               </strong>
                            </span>
                            <span class="remove">
                               <a class="ajaxQuantityLink" href="$removeallLink" title="<% sprintf(_t("REMOVEALL","Remove all of &quot;%s&quot; from your cart"),$CartTitle.XML) %>">
    Remove
                                  <!--<img src="ecommerce/images/remove.gif" alt="x"/>-->
                               </a>
                            </span>
                         </span>
                         <div class="clear"><!-- --></div>
    <hr />
                      </li>
                   <% end_if %>
                <% end_control %>
                <li class="subtotal"><% _t("SUBTOTAL","Subtotal") %>: <strong id="$CartSubTotalID">$SubTotal.Nice</strong></li>

                <% if Modifiers %>
                <% control Modifiers %>
                   <% if ShowInCart %>
                      <li id="$CartID" class="$Classes">
                         <span<% if Link %><% else %> id="$CartTitleID"<% end_if %> class="title">
                            <% if Link %>
                               <a id="$CartTitleID" href="$Link" title="<% sprintf(_t("READMORE","Click here to read more on &quot;%s&quot;"),$CartTitle) %>">$CartTitle</a>
                            <% else %>
                               $CartTitle
                            <% end_if %>
                         </span>
                         <span id="$CartTotalID">$CartValue</span>
                         <span class="remove">
                            <% if CanRemove %>
                               <strong>
                                  <a class="ajaxQuantityLink" href="$removeLink" title="<% sprintf(_t("REMOVE","Remove &quot;%s&quot; from your order"),$TableTitle) %>">
                                     <img src="ecommerce/images/remove.gif" alt="x"/>
                                  </a>
                               </strong>
                            <% end_if %>
                         </span>
                      </li>
                   <% end_if %>
                <% end_control %>
                <% end_if %>

                <li class="total"><% _t("TOTAL","Total") %>: <strong id="$CartTotalID">$Total.Nice</strong></li>
                <li class="buyProducts"><p><a class="checkoutButton" href="$checkoutLink" title="<% _t("CheckoutClick","Click here to go to the checkout") %>"><img class="checkoutButton" src="$ThemeDir/images/cartCheckout.gif" alt="-"/></a></p></li>
             </ul>
          <% else %>
             <p class="noItems">
    Your basket is empty.
    </p>
          <% end_if %>
       </div>
       <% end_control %>

    then in my page.ss i have this:

    <div class="sidebarBox cart">
          <% include Cart %>
       </div>

    result:

    http://www.zaharahair.co.uk/

  • GRiiDWeb
    Avatar
    Community Member
    60 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    Hi CHD,
    Thanks a lot for the code. I think I can see where me troubles are now with this example. I've been following your progress on that site URL and it's a great example to all as to how the e-commerce will look and perform.

    Thanks to all those testing and to Jedateach for his continued work.
    Stick with it those of you who are having trouble, I've had various stages of the updated module working nicely, so it does work. I'm in no way an expert programmer, but I keep working with the modules and following the forums. So far, I've had a lot of success.

    P

  • DaveTh
    Avatar
    Community Member
    14 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    Hi thanks for sharing the codes, it really helps me to move one step further in learning silverstripe and how to install the ecommerce module.
    I have spent the last few hours going through the last hundreds of discussions in the forum. It is hard to tell what need to fix the problem I shown in the attached picture. Thanks for sharing your expert experience..

    Attached Files
  • damsel
    Avatar
    Community Member
    8 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    Does anyone know how to move over existing data from the last version of supported eCommerce to the trunk one? I thought it would upgrade the existing data but when I go into the pages area, all that is there are the main pages for the product categories. If I go into the "store" area, there are no products or product categories.

    Also, how do I apply the template to the module? My pages are coming up with the plain, unformatted layout instead of the blackcandy theme.

    Thanks!

  • GRiiDWeb
    Avatar
    Community Member
    60 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    Hi all,
    Rather than 'featured products' just showing at the top level in 'products', I'm getting the whole lot of products showing, which means one massive top level page. Has anyone figured how to prevent this and could possibly share some code?
    Thanks to CHD's help with cart, I have a fully functioning e-commerce working with PayPal, but I just need this last issue resolving before I launch.
    I'll post the URL when complete.

    Thanks

  • GRiiDWeb
    Avatar
    Community Member
    60 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    Hi Damsel,
    In some Silverstripe themes, there are templates and CSS to replace the out of the box CSS in the e-commerce. Ive downloaded some of these and had an experiment changing the CSS.
    The new commerce module should adopt your current theme to some degree already, but look at the CSS in the module to begin with.

    P.

  • dfnetchii
    Avatar
    Community Member
    10 Posts

    Re: Working on e-commerce for SS 2.4 Link to this post

    Still looking for some help with flatrate.

    using 2.4+ 0.3 payment

    Have included:

    SimpleShippingModifier::set_charges_for_countries(array());
    SimpleShippingModifier::set_default_charge(10);

    but nothign shows on checkout.
    Any suggestions ?

    13318 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
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.