| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
common if/then modifications I make to x-cart... | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#131
|
|||||||||
|
|||||||||
![]() Hello I need to load scripts and images only if user on one page and I can not specify page Id because it custom made module and all categories shown there as:
custom.php?cat=7000 or custom.php?cat=3450 and so on Load script only on all of the module.php page with cat ID from 1 to 10000. or simply custom.php page thank you.
__________________
|
|||||||||
#132
|
|||||||||
|
|||||||||
![]() Hello did you figure this out.
I try to do the same but with more scripts and css. Also how to define page in if/else if it custom.php for example. thank you Quote:
__________________
|
|||||||||
#133
|
|||||||
|
|||||||
![]() Hi I customized the Fulfilment account to be able to add products, works great, now my client wants to hide some options from the add/edit product page, I would like the help of you guys to let me know an If/then statment to hide the options to the fulfilment staff. I have almost 3 days working on it and I cann't find the varieble to do this.
Thanks
__________________
OB01 x-cart gold 4.4.1 | ferreteriamonterroso.com |
|||||||
#134
|
|||||||||
|
|||||||||
![]() Hi OBO1,
I haven't tried this bu I know that include/security.php assigns the user account flag to smarty: $smarty->assign('current_membership_flag', $user_account['flag']); and fulfillment staff's flag is FS I believe. So maybe: {if $current_membership_flag ne "FS"} Show this stuff to regular admins. {elseif $current_membership_flag eq "FS"} Show this stuff only to Fulfillment Staff. {/if}
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#135
|
|||||||
|
|||||||
![]() Quote:
Thank you Totaltec!! works Great!. ![]()
__________________
OB01 x-cart gold 4.4.1 | ferreteriamonterroso.com |
|||||||
#136
|
|||||||||
|
|||||||||
![]() Quote:
Better to use this code in case they are using CDSEO or clean urls which won't have the pageid in the url: Code:
|
|||||||||
#137
|
|||||||
|
|||||||
![]() Hi, could anyone please point me in the right direction, I'm trying to hide the add to cart, update, price and amount for products in just one category in the wishlist using if/else statement. I think I should be editing wl_products.tpl, would anyone know if this is correct.
Thank you, Pauline.
__________________
X-Cart Pro v4.4.4, XMall |
|||||||
#138
|
|||||||||
|
|||||||||
![]() Pauline, use webmaster mode to determine what template to edit. Follow the tutorial link in my signature if you don't know what I mean.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#139
|
|||||||
|
|||||||
![]() Will Do,
thanks Mike.
__________________
X-Cart Pro v4.4.4, XMall |
|||||||
#140
|
|||||||||
|
|||||||||
![]() I added a list of some common statements I use in a tutorial at: X-Cart Common Smarty Statements.
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|