ALRIGHT i'm getting closer here, maybe with a bit more help i can figure this out.
ok, now i have my NEXT button working very simple code indeed.
so far so good.
Ok i made a .tpl file called nextpage.tpl
and this is the code in that file:
NEXT
All to easy yes?
but in order to get the variable for productid in there i needed this:
{include file="../files/master/nextpage.tpl" productid=$product.productid}
in the product.tpl file, where productid is assigned $product.productid and transfered to my template.
All very good and well BUT utterly useless because here's the deal:
If i were to just use this simple code i would wind up in a problem when i reach the end of the ProductID list.
So i came up with a solution but i've hit another brick wall with it.
Here's my solution maybe the X-cart supermods can help me with the answer:
I need to use if statements but i need to learn how to grab the variables that I need.
Here's my plan see if anybody can give me a hand:
$total_products = $AmountOfProductsInCurrentCategory
$product_counter
if $product_counter <= $total_products - 1
Show NEXT button
$product_counter = $product_counter + 1
else $product_counter = $total_products
Show Goto Home Button
All I really need to know is how to get the total amount of products for the current category.
I thought it was this line of text:
{ $subcategories[cat_num].product_count } but as it turns out it's not, (well it maybe) but there is no value inside of it when placed inside the product.tpl file.
If anybody, just anybody can show me how to get the the total amount of products inside the current category i could do the rest myself.
I appreciate all your guys help and i'll pose the code and every thing once i'm done with this.