Announcement

Collapse
No announcement yet.

Displaying total weight on site

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Displaying total weight on site

    Having searched these forums, I've found a couple of references to this and it seems it was requested to be added to the wish list. Does anyone know if this has happened yet? I'd like to display the total weight of the order (just as cart contents displays number of items and total value) so customers can get an idea of how much postage will be.

    By the way, are there other variables available using the getCartItem() array - i.e. if getCartItem(1) is value and getCartItem(3) is no. of items, what's getcartitem(2)???!!!
    ActiveStock
    On-line, real-time stock control plug-in for Actinic V7, V8 and V9
    **New - Captcha plug-in for your Contact Us form**

    ActiveStock website
    Free 30 Day Trial
    ActiveStock Blog (including a new tutorial on a 'Sort By' function for long section pages)

    #2
    Hi Richard,

    I'm afraid this has not been acted upon. When ever we add it onto the wishlist, it does not mean it will go onto the next patch. There is no variable for weight, so it would be quite hard in achieving what you want. You could do it with Custom variables and putting in your own javascript code within the Act_Primary.html, but i don't know how to do that.

    getCartItem(1) is value and getCartItem(3)
    There are only these two variables, have a look in ActinicExtra.js within your site1 folder and you will see:

    Code:
    /***********************************************************************
    *
    * getCartItem		-	Gets the Actinic Cart Value & No of Items
    *
    * Input: nIndex	-	Cart item index to retrieve
    *							1 = TOTAL_VALUE
    *							3 = CART_COUNT
    *
    * Returns:				Requested cart item or 0 (zero) if not found
    *
    ************************************************************************/
    Kind Regards
    Nadeem Rasool
    SellerDeck Development

    Comment


      #3
      Hi there

      I implemented a weight based shipping system that adds up the weight as the browser buys items and the uses it in the checkout to look up live shipping tables (see www.steps-to-memories.com).

      If you set a CUSTOMVAR for the weight of each product then you can write that CVAR into the template. Then you can create some script that is fired on an onclick event on the Add to Cart button to check the current weight (stored in a cookie), adds the new weight of the added product (from the CVAR) and resets the cookie with the new total.

      On the site above, if you 'View Cart' then press CTRL + A, you'll see the total weight highlighted.
      http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
      http://www.dtbrownseeds.co.uk - More seeds and plants....
      http://www.mr-fothergills.co.uk - Well it used to be Actinic...

      Comment

      Working...
      X