Codeigniter cart Library not working properly - codeigniter

I have used cart library for adding updating and deleting items in carts. I am counting number cart items not quantity. I am counting number of item in navigation header which will be including in all pages. But when i navigate to different pages cart item will not be the same. If i added 2 items in cart in home page it shows 2. when i navigate to about us page it it will automatically setting to 1. if i use cart count why it will display different count in different page? Help me with this.

Related

Volusion Soft Add To Cart - Show cart Total instead of Subtotal

In the Volusion shopping carts "soft add to cart" feature, which is turned on in product options with "Enable Add To Cart Popup", the popup shows the "Subtotal" of products currently in the cart.
The issue is this Subtotal does not include quantity discounts and therefore shows customers a higher price than the actual Subtotal after discounts are applied.
For that reason, we would like to display the cart Total, which includes any quantity discounts applied.
The problem is, I cannot find a place where this can be done in the HTML we have access to and if I were to find it, I'm not sure of the proper Volusion syntax to use to call up the Total instead of the Subtotal.
Thanks!
I had a different issue, but the same problem (soft add to cart did not display the proper info).
In my case, we allow engraving on our products, for an additional charge, and when selected this option was not displayed in the popup cart. As a result, customers were not sure if they chose it or not.
My solution was to add a Shopping Cart block to the page, as part of the template, using jQuery.
If you call http://yourUrl/AjaxCart.asp you'll see the discount info you need in the JSON data, as well as the line items in the order.

Show $cartItemsCount for each Magento website ID

I have a magento multistore website where we have a landing page that links to three stores (and each store is on it’s own subdomain). The carts/checkouts are all separate, but we have the customers set as global so they can navigate to each store without relogging in. We would like to show a summary block on the landing page that lists the 3 carts and the number of items in each, as simple as
Cart for Site A has 1 item
Cart for Site B is empty
Cart for Site C has 2 items
It seems like it should be simple, like:
$_cartQty = Mage::getSingleton('checkout/cart')->getItemsCount()
but I am having a terrible time finding any answers. Thanks!
Use
$count = $this->helper('checkout/cart')->getSummaryCount(); //get total items in cart
$total = $this->helper('checkout/cart')->getQuote()->getGrandTotal(); //get total price

magento how to add Recurring Profile and simple product to cart

first i have to add simple product to cart but its doesn’t go to shopping cart page . it should be redirect to a category page . then in the category page i have to add a recurring profile to cart .
i didn’t know how to redirect to category page and i cant add this two products(recurring profile and simple product) to cart.
i cant add more than one product in cart .
any one having solution for this . . .
please help me
i am a new one to magento
pls replay me as soon as possible with correct solution
Recurring products are "nominal items" in Magento which have several restrictions and qualities. One of the main restrictions is the inability to add more than one item to your cart. From the official Magento site:
Currently no more than one nominal item can be added to the shopping cart at a time. A nominal item and a regular item cannot be added to the shopping cart simultaneously. This happens because of the current order submission rules – while an order in Magento is submitted only once and regular items must be submitted as an order, each recurring profile must be submitted separately.
Source: http://www.magentocommerce.com/knowledge-base/entry/working-with-recurring-profiles
I have tried before to scope out how to add more than one recurring profile to your cart, or add it with other items and believe me - it's really not worth the hassle.

Add two products to magento Shopping Cart simultaneously on click of add to cart button

I have been working on a LiftSuggest - an automatic Product Recommendations generator.
Now,I have introduced a bundling functionality which will bundle two products and assign discount.
For example,
On product page of A of the client's site,I(LiftSuggest) displays a bundle Saying "Buy A and B together and avail 10% off on net value". Now, when the user clicks on the add to cart button , I want both the products to be added simultaneously to cart. I had implemented the solution proposed on this link, but I need the products to be added on click of add to cart button,without entering the quantity or providing the check box.Just imagine that you can see a box( container) containing two products and on click of add to cart button-in that div container itself, both of them should be added to cart.I can make out that I need to store both the products in session, but I don't know exactly how to proceed.
Scripting language used:PHP
Please Help!
There are cart rules for various shopping carts. You can manipulate those rules through coding and achieve the desired output.

How to list the categories of the current store?

I have a site which have 2 store views. I want a page to list the categories of the current store and when I click on a category it should display all of the products in that category in a list.
Any who can give some idea about this?
That page already exists by default in Magento. It is probably a link in the page footer as "Site Map", or you can reach it directly by typing the URL of the store followed by /catalog/seo_sitemap/category

Resources