| ||||||||||
![]() |
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 |
#151
|
|||||||
|
|||||||
![]() Hi Mike,
I have added this in my static page but in pop it throws the error please have alook
__________________
X-cart Platinum 4.6.1 Reboot template |
|||||||
#152
|
|||||||||
|
|||||||||
![]() It looks like your version does not include the sign-in popup. I guess it was a later version that included this, like 4.4.4
Hmmm, well then you are going to need to do the same as the register page. Include a special variable in the URL, and direct them back to the special page after login. Where does the login page take you now? I suspect it is either the home page, or if you have items in your cart, the cart page. Take a look at the code that performs this function, and include a catch for your special variable. Just like we did for registration.
__________________
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. |
|||||||||
#153
|
|||||||
|
|||||||
![]() Quote:
Hi Mike, My version is 4.4.2 Pro.is this a bug? Yes u r right Where does the login page take you now? I suspect it is either the home page, or if you have items in your cart, the cart page. I want when a customer is in a static page then when he or she login then he will redirected to the next page but remaining functionality of going into cart if some products in cart and redirected to home page functionality remains the same. Please provide me the codes. Thanks..
__________________
X-cart Platinum 4.6.1 Reboot template |
|||||||
#154
|
|||||||
|
|||||||
![]() Hi Mike,
Can you please look into this matter?
__________________
X-cart Platinum 4.6.1 Reboot template |
|||||||
#155
|
|||||||||
|
|||||||||
![]() Quote:
![]() I am trying to guide you, so that you can make modifications like this without help. Remember how we solved this last time? We are going to do the same! Open up your /include/login.php Take a look at the file and actually read it, Open it up in a real code editor like Notepad++. Very near to the top of the file, we see: Code:
Code:
Then it checks to see if their if the user exists and if the account is active or suspended (lines 117, 134). From line 141 down to about 229, you can see it performing functions for admin users, suspending accounts that are inactive, forcing password changes, and checking for admin IP restrictions. Line 231 checks the password, but near line 243 we see this: Code:
Code:
Near line 264 we see the note // Redirect to saved URL After that you can see it checking for cart contents and remembered data, and finally near line 286: Code:
If you use CTRL F to search in the file for this variable "$redirect_url", you will see it mentioned in several places. There are several points along this chain that you can use our code from before: Code:
Code:
Look down through the document. See: Code:
Now don't forget to include the ?custom=yes at the end of your link.
__________________
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. |
|||||||||
#156
|
|||||||
|
|||||||
![]() hello I want {if} {else} statement for following customization.
In the customer invoice just after product name I want to display manufacturer name: {product Name} by {manufacturer} Also in above if product has got thumbnail then I want to display simple "." (DOT) after {manufacturer}, (This is just for internal purpose so that I can see which products doesn't have images) So following will be logic for products with manufacturer & thumbnail Code:
And following will be logic for products with manufacturer WITHOUT thumbnail Code:
I guess it should be real simple to achieve with proper variable & if/else statement. Note: I am looking this for 4.5.4...can one help me on this ![]()
__________________
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 ---------------- |
|||||||
#157
|
|||||||
|
|||||||
![]() How can i remove the Goodies tab from the providers area
|
|||||||
#158
|
|||||||
|
|||||||
![]() I would like to add an if/then statement so that when there is text in a language variable it is displayed. If there is no text in the language variable, then the the language variable does not display. Is this possible?
Thanks in advance! |
|||||||
#159
|
|||||||||
|
|||||||||
![]() if (lng.variable != '')
__________________
X-Cat 4.5.4 & (1/2) Live June 1, 2013. |
|||||||||
#160
|
|||||||||
|
|||||||||
![]() Quote:
missing the $ and this code looks more of a php than smarty so it won't work in templates {if $lng.your_variable_name ne ''}{$lng.your_variable_name}{/if}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|