Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting Details from one Dynamic Page to Another - Re-Post
    primarykey
    data
    text
    <p>After some wrestling with almost every line of code written for the JoomShopping component I beleive I have found what should be the answer to all my woes.</p> <p>When activating the "Buy" button in the shopping list and once clicked on it uses the following link syntax in order to post a Product to the Checkout Cart:</p> <pre><code>index.php/cart/add?category_id=2&amp;product_id=12&amp;quantity=4 </code></pre> <p>Where 2 is the Category ID and 12 is the Product ID etc ... This was solved by V.Vachev, but I thought it prudent to post all of the finished/fixed oced as it works:</p> <pre><code> $('.checkOut').live('click',function(){ var products= new Array(); $(".jshop_prod_cart").each(function(){ var product = new Object(); product.catid = $(this).find('[name="category_id"]').val(); product.id = $(this).find('input[name="product_id"]').val(); product.qanty = $(this).find('input[name^="quantity"]').val(); products.push(product) $.ajax({ type: 'GET', url: "shop-portal/add?category_id="+products[0].catid+"&amp;product_id="+products[0].id+"&amp;quantity="+products[0].qanty, dataType: 'json', }) }) }) </code></pre> <p>this returns:</p> <blockquote> <p><a href="http://www.domain.com/index.php/shop-portal/add?category_id=2&amp;product_id=48&amp;quantity=4" rel="nofollow">http://www.domain.com/index.php/shop-portal/add?category_id=2&amp;product_id=48&amp;quantity=4</a></p> </blockquote> <p>BUT it is only returning the 1 and I have multiple dynamic entries which all need to be captured as such.</p> <p>I am researching this, it seems I need to cache this information somehow ... Any ideas?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload