| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Can I make a category link directly into a product detail? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Can I make a category menu item link directly into a product detail page?
Let's say I have 2 categories + 1 individual product, that I want to treat as MAJOR PRODUCT item... CATEGORY 1 ==> Category 1 page (actually products.tpl) CATEGORY 2 ==> Category 2 page (actually products_t.tpl) MAJORPRODUCT1 (disguised as a category) ==> I WANT THIS TO link right to product.tpl Can this be done? I own the WebsiteCM "multiple product and category templates bundle" (which is great)... but this function is outside the scope of that mod. My goal is to make the products.tpl think it's product.tpl. Using the WebsiteCM tools, it's very easy to assign a new/modified tpl file to a specific category. SO, let's say that I were to clone "products.tpl", call it "products-majorproduct1.tpl" -- and of course assign it to the "category" MAJOR PRODUCT1 -- what exactly can I do to this to make it behave as if it were a product detail page? Is there a shortcut or hidden trick? I have searched the forum for this - but nobody seems to have done this in public... Your expertise is appreciated. Thanks, Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#2
|
|||||||
|
|||||||
![]() Why not just hard-code the category menu to link right to the product detail page?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Quote:
Don't forget that I'm still a newbie... I have mastered many parts of the code, but there are many concepts that I don't have a clue... In this case, I purchased PhilJ's True Three Level Vertical Category Flyout Menu -- so I've added a layer of complexity (maybe not?) If you were going to hard code a specific product.tpl (let's say I rename it product-majorproduct1.tpl) - where would you start? Would the code look like an if/else -- ? SInce I have disabled /skin1/customer/categories.tpl, my code may need to be different, but not THAT different. Let's say you were going to hard code a product detail page into a "stock" categories.tpl -- Code:
Surely someone has done this??? What do stores that only sell a few products do? Do they always require the customer to click on a category (thumbnail) page before getting to the product detail? Unfortunately, many xcart stores do this -- in my opinion, a speedbump for the customer. Thanks for pointing me in a direction...
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#4
|
|||||||
|
|||||||
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Quote:
I may have to take this to xcart support -- I can't BELIEVE this is not a common feature that many, many merchants want/need! How many merchants (manufacturers) have a new or featured product that they want front and center - and of course, we make a featured product for it (only useful on the home page) -- but we also want it to be the first category slot, and avoid the "speedbump" of a category page (products.tpl). I have emailed and PM'd a few forum members, maybe the brain trust will have an idea? Thanks for the link. Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#6
|
|||||||
|
|||||||
![]()
__________________
xcartmods.co.uk |
|||||||
#7
|
|||||||
|
|||||||
![]() Phil,
That mod didn't work for me... ![]() Hopefully, I'll stumble into a fix. I am still surprised that this isn't a "stock" option.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#8
|
|||||||
|
|||||||
![]() That's actually the mod I meant to point you to...sorry. It works on 4.0.18, as I've used it in the past.
Remember, there can only be so many 'stock options' in a product that costs $199 ![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||
|
|||||||
![]() It works! My bad.
The copy/paste on a mac sometimes adds whitespace when pasting into my preferred text editor (text wrangler)... Thanks to a suggestion from PhilJ, I looked at the code and for whatever reasons, mr. macintosh dropped some extra spaces in to the lines (also when copying from a mac browser like Safari, all kinds of bad things happen at line breaks) Re-formatting all the linebreaks and whitespace fixed this! YEAH BABY! Thank you! Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|