Jump to content

Adding product based variables (QTY) to static pages outside of cart.php


gamestuff

Recommended Posts

Not sure this is the right area to ask this but I thought this was the closest fit.

 

At the moment, I have my own "products" page which is a static page not integrated into the cart. From there i have links in the manner "order/?pid=1&skip=1".

 

My issue is I would like to add stock levels based on the product onto this page somewhere in my template. Is there a way to identify product QTY based on itemid?

 

I took a look at the cart and it seems they have the following code

 

{foreach key=num item=product from=$products}
{$product.name} {if $product.qty!=""}<em>({$product.qty} {$LANG.orderavailable})</em>{/if}

 

This makes sense for the cart but on my static page within WHMCS i do not have the "{foreach key=num item=product from=$products}" and don't know how i would apply it in my application.

 

Any suggestions?

 

Sorry if i'm unclear on any of this.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated