Support Forums

Selected category name in step 2

This is a discussion on Selected category name in step 2 within the Technical Support forums, part of the Technical Support Forums category; Hello, I would like the category name selected in step 1 appears in step 2 during the checkout. Is anyone ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 10-23-2009, 12:31 PM   #1
Senior Member
 
Join Date: Apr 2009
Location: South of Spain
Posts: 116
Rep Power: 5
magicosta is on a distinguished road
Default Selected category name in step 2

Hello,

I would like the category name selected in step 1 appears in step 2 during the checkout.

Is anyone can help me for that code please, thank you
__________________
Default Template - V 4.1.5 - Developper
magicosta is offline  
Old 10-23-2009, 12:50 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,932
Rep Power: 47
seymourjames has a spectacular aura about
Default

Basically you should use the debug function to see if this variable is available to that template file and if it is you can display it. There are numerous posts on the forum about debug and how to use it.
__________________
TemplateCodes.com for 68 Classifieds - Magento for Online Stores
seymourjames is offline  
Old 10-23-2009, 01:27 PM   #3
Senior Member
 
Join Date: Apr 2009
Location: South of Spain
Posts: 116
Rep Power: 5
magicosta is on a distinguished road
Default

Thank you for your reply.

The only one available is {$category} and just displays the category number.

Is there another way to do it?
__________________
Default Template - V 4.1.5 - Developper
magicosta is offline  
Old 10-23-2009, 05:30 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,932
Rep Power: 47
seymourjames has a spectacular aura about
Default

Well if the category ID is available and you do not have too many categories then Smarty is your friend. Just do a set of tests on the value of the ID and display the appropriate category name. Alternatively you could do it in the checkout.php file with a nice switch statement.
__________________
TemplateCodes.com for 68 Classifieds - Magento for Online Stores
seymourjames is offline  
Old 10-23-2009, 05:50 PM   #5
Coder
 
Join Date: Mar 2006
Posts: 4,813
Rep Power: 118
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

there is a few ways it could be done but you will need to modify code if you dont want to use template logic OR what I would do is just make a plugin that queries the db using the catid to get the name.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 10-23-2009, 08:27 PM   #6
Senior Member
 
Join Date: Apr 2009
Location: South of Spain
Posts: 116
Rep Power: 5
magicosta is on a distinguished road
Default

Thank you for your help guys,

...about that way you would do Larry, with that plugin and query to db, do you mind to help me a little bit more, I am afraid to not be able to do it without a certain help, thank you very much.
__________________
Default Template - V 4.1.5 - Developper
magicosta is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
When user edits ad, extra fields show up as SELECTED teggen Technical Support 2 09-22-2009 06:36 PM
checkout: extra fields don't hold value @ step 4 back to step 3 Golfball Modules / Plugins / Modifications 6 11-04-2008 11:18 AM
View Selected Category and Sub Category during checkout process? Kazza Technical Support 4 10-27-2008 09:02 AM
Search page when Category selected zavala77 Technical Support 0 07-17-2008 02:38 PM
Checkout - Step X of X civ v3.1 Suggestions and Feedback 1 05-09-2006 05:01 PM


All times are GMT -4. The time now is 07:22 AM.


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