| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
common if/then modifications I make to x-cart... | ||||
|
|
Thread Tools | Search this Thread |
#121
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
X-Cart 4.4.x currently, but probably all previous versions are compatible also - I can't remember. Let me know if any problems...
Better Search Box: If you want a custom search box on your X-Cart store that has an initial value of 'Search for products..." displayed, that when clicked turns blank so the user can type their search term without having to remove the text by hand & then when the search results are displayed, retains the term they just entered until they click back inside the box again, do this: in customer/search.tpl find the following code (around line 20): Code:
and replace it with this: Code:
Just done this for the nth time and thought it might help, in case anyone missed it.
__________________
Best regards, Donavichi. - - - Website Copywriting || Web Design || FAQs || Home & Garden Blog |
|||||||
|
#122
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Trying to show an image on product.tpl only if wholesale prices are available for that product.
Is there an if statement that covers something like that? Thanks in advance.
__________________
X-cart 4.1.9 |
|||||||
#123
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Code:
that should do it. Quote:
__________________
Best regards, Donavichi. - - - Website Copywriting || Web Design || FAQs || Home & Garden Blog |
|||||||
|
#124
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Thanks ... works great!!
__________________
X-cart 4.1.9 |
|||||||
#125
|
|||||||||
|
|||||||||
Re: common if/then modifications I make to x-cart...
I'm looking for and if/then statement that would either clear out the email field if it equals dummyemail@email.com (thus requiring the customer to fill it in) or require the email field to be changed upon initial login if membership id = 8.
What I'm looking to accomplish is to import a large list of customers when I do not have their email addresses. I've come to the conclussion that I'll have to do this with a dummy email instead. However, I need to require the customer to change this so that they will properly receive notifications rather than the dummy email receiving them. Any help on this would be greatly appreciated!!
__________________
X-Cart 4.4.4 Gold |
|||||||||
#126
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
This may already have come up in this thread but I can't find it. I'm using 4.4.x and I don't seem to have a $user_membership variable. I want to use an if/then like the one above to show one thing on a static page if the user is a wholesale customer and something else if the user is not.
__________________
Version 4.4.2 |
|||||||
#127
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
I want if else statement for static page.
For example if visitor click on static page link. The following javascript should be load Code:
In short what if/else condition I should put between <head> </head> so that above javascript function load if person open static page id=1 ?
__________________
X-Cart: 4.7.7 LIVE Skin:Ultra by xcartmods.co.uk X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9) --------------- Server: Linux php: 5.3 mysql: 5.0.89 ---------------- |
|||||||
#128
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Code:
__________________
xcartmods.co.uk |
|||||||
#129
|
|||||||
|
|||||||
Register as customer and provider on front end of site
What is needed to allow anybody to register as a customer and a provider. I'm thinking I need an {if statement to accomplish this, but I'm not quite sure what is needed. I'm hoping someone can point me in the right direction or tell me what needs to be done. I don't want the admin in control of creating provider accounts, but I would like to approve the providers as they sign up. Any help would be much appreciated.
__________________
X-Cart Pro 4.4.2 |
|||||||
#130
|
|||||||
|
|||||||
Re: common if/then modifications I make to x-cart...
Quote:
This should be close to what you need. I was having the same problem on my v4.3.1, and here is the solution: 1. In the file \include\check_useraccount.php find the following: Code:
... and paste underneath: Code:
This allows you to call {$user_membership} or {$user_membershipid} in the Smarty template to generate the name and ID number. Note: You can create other variables by using the $user_account database request on line 155. Hope this helps! Darren
__________________
Darren X-Cart Gold 4.3.1 |
|||||||
|
|||
X-Cart forums © 2001-2020
|