X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Change in Location? (https://forum.x-cart.com/showthread.php?t=5881)

Owl 01-06-2004 09:32 AM

Change in Location?
 
ok as it is now the location where a customer is looks like this, for example on my site

sitename.com :: Speakers :: Fuses :: excess-current cut-outs :: Overload circuit breakers

and i would want it like this

sitename.com
:: Speakers
:: Fuses
:: excess-current cut-outs
:: Overload circuit breakers
Your browsing: {productname}

i tried editing in location.tpl but the things i came up with dun't make it the way i want it, if anyone could help me with this i would be glad :)

leon 01-06-2004 11:31 AM

Thats in the location.tpl file, just add
tags when it loops thru the category and product display.

Owl 01-06-2004 07:58 PM

That is what i tried, but it does not work as i want it to...

This is what my code looks atm...

Code:

{strip}
<font color="#FF6600">Note:</font>

You can press the navigation bar to quickly be able to move between related

categories, last one in list is the one you are currently browsing.




<a href="home.php">
<font class=NavigationPath>{$config.Company.company_name}</font>
</a>
{if $last_location ne ""}
::
{if $last_url ne ""}
<a href="{$last_url}">
{/if}
<font class=NavigationPath>{$last_location}</font>
{if $last_url ne ""}
</a>
{/if}
{/if}
{if $location}
<font color="#FF6600">::</font>
{section name=position loop=$location}
{if $location[position].1 ne "" }<a href="{$location[position].1}">{/if}
<font class=NavigationPath>{$location[position].0|escape}</font>
{if $location[position].1 ne "" }</a>{/if}
{if %position.last% ne "true"}<font color="#FF6600">::</font>
{/if}
{/section}
{/if}
{/strip}




dunno really in wich way i should set the breakings, i tested everywhere i think

Owl 01-06-2004 09:49 PM

and while im asking, where can i edit how the layout of my featured products should look like

leon 01-06-2004 11:04 PM

Quote:

Originally Posted by Owl
dunno really in wich way i should set the breakings, i tested everywhere i think


This is done in the section loop, try this:

{section name=position loop=$location}
{if $location[position].1 ne "" }<a href="{$location[position].1}">{/if}
<font class=NavigationPath>{$location[position].0}</font>
{if $location[position].1 ne "" }</a>{/if}
{if %position.last% ne "true"}::
{/if}


{/section}

Good luck, cause I havent tried it myself, but the logic seams to be that way, let me know if it was successful. :D

leon 01-06-2004 11:14 PM

Quote:

Originally Posted by Owl
and while im asking, where can i edit how the layout of my featured products should look like


Not sure what you are really asking here, but if it is related to design over elements, that is done in the Cascading Style Sheet file, called skin1.css in your template folder.

Now if you want to shift things around, then go to "products_t.tpl" located in skin1/customer/main directory, that is where the location of product elements are located, remember that it is only a list of products MARKED as featured, so if you change things around for featured it will do the same to the normal list of products... in theory that is.

I have not tested this either...


All times are GMT -8. The time now is 05:10 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.