Support Forums

Old 04-25-2009, 10:14 PM   #1
Member
 
Join Date: Mar 2009
Posts: 30
Rep Power: 1
wabugi is on a distinguished road
Default Choose product in checkout

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
wabugi is offline   Reply With Quote
Old 04-26-2009, 08:32 AM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 4,095
Rep Power: 99
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by wabugi View Post
As always I am a bit confused concerning php ^^
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
Lhotch is offline   Reply With Quote
Old 04-26-2009, 10:35 AM   #3
Member
 
Join Date: Mar 2009
Posts: 30
Rep Power: 1
wabugi is on a distinguished road
Default

That's what I was looking for. Many thanks
__________________
68 Classifieds - Developer Edition
wabugi is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 05:42 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0