Template Club Package Silver Pacakage Gold Pacakage Developer Pacakage Accepted Payments Member Login
Welcome, Guest
Please Login or Register.    Lost Password?
Using variables in the registration link. (1 viewing) (1) Guest
Go to bottomPost New TopicPost Reply Favoured: 0
TOPIC: Using variables in the registration link.
#45747
Using variables in the registration link. 6 Months, 2 Weeks ago  
Hi all,

I would be grateful if anyone can point me in the right direction here.
I would like to use a variable in the registration link. The variable will act as the product id number, which will vary depending on the chosen extension.
The code I am using in the avaiable domain template is

Code:

<?php $x=20;?>
to define the variable and to call it in the registration link is

Code:

<a href='index.php?option=com_cart&page=shop.product_details&flypage=flypage_new.tpl&product_id=' . $x . '&domain=[[domain]].[[ext]]&step=2'</a>;
.

My question is two part;

1. Where do I define the variable so it can be called?

and

2. What is the correct code to substitue the variable in the link?

Please if anyone can help, I would eternally appreciate it.
Thank you everyone for your time and help.
Cheers,
Lisa
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
Lisa (Visitor)

Logged Logged  
 
Reply Quote  
#46205
Re:Using variables in the registration link. 6 Months, 1 Week ago  
Any ideas anyone. Please, please if anyone has an answer or a suggestion I would greatly appreciate it.
Thanks guys,
Lisa
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
Lisa (Visitor)

Logged Logged  
 
Reply Quote  
Go to topPost New TopicPost Reply