|
|
#1 |
|
Member
Join Date: Mar 2009
Posts: 30
Rep Power: 1 ![]() |
I'd like to redesign step 2 of the checkout sequence.
I want to take away the whole text and display an image for every product. The image should also be the "select this package"-button. For better control over the layout I don't want the script to use the foreach-loop. Can I maybe use the pID to choose one of the products? As always I am a bit confused concerning php ^^
__________________
68 Classifieds - Developer Edition |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Mar 2006
Posts: 4,095
Rep Power: 99 ![]() ![]() |
Im not real sure what php confuses you because the php script sends an array of data to the template and the template loops through the array to create the various buttons ad package buttons.
The smarty {section" function loops through the array, creates a table data cell and a form with a button and text describing the ad package. I would just edit that loop, remove the text. LEAVE the section loop and reuse the hidden form values that currently exist. Make your image the button and point to the image incorporating the package ID variable into the link to the image. Then I would save your category images and incorporate the package id into the name so that you can use the value of the package ID to point to the appropriate image. In each iteration of the {section} the current package ID is represented by {$results[numloop].pID} so that can be used in the image name... something like this... <a href="mysite.com/images/packagejpg{$results[numloop].pID}.jpg"></a>
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
|
#3 |
|
Member
Join Date: Mar 2009
Posts: 30
Rep Power: 1 ![]() |
That's what I was looking for. Many thanks
__________________
68 Classifieds - Developer Edition |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Planning to buy a product | Marc | Pre Sales Questions | 1 | 01-11-2009 09:02 PM |
| Coding help needed to change look of "choose an ad package" page. (Will Pay) | Greg H | v3.1 Modules & Modifications | 0 | 01-28-2008 09:25 PM |
| Choose language | pschievink | v3.1 Questions & Support | 3 | 06-25-2007 09:59 AM |
| Which Free Template to Choose? | jj30 | v3.1 Questions & Support | 1 | 05-01-2007 06:37 PM |
| Almost bought your product | f16eater | Pre Sales Questions | 1 | 04-28-2006 08:23 AM |