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)
-   -   Changing the Javascript window size for Terms and Conditions (https://forum.x-cart.com/showthread.php?t=67937)

Nora 10-12-2013 11:38 AM

Changing the Javascript window size for Terms and Conditions
 
Thank you ahead of time for your help!

Situation: I need the Terms and Conditions overlay and the Privacy Statement to open in a 600px wide window, instead of a 800px wide window.

What I know and have done:
1. I already know that this window is called by the file skin/theme-name/modules/One_Page_Checkout/opc_summary/tpl file
2. I already know that the calling code is "{$lng.txt_terms_and_conditions_note|substitute:"t erms_url":"`$xcart_web_dir`/pages.php?alias=conditions":"privacy_url":"`$xcart _web_dir`/pages.php?alias=business"}"
3. I already know that there is an entry (named txt_terms_and_conditions_note) in the xcart_languages table of the database.
4. I have already changed that entry to 600px because there doesn't seem to be any place to make that change in the user-unfriendly dashboard for X-cart.
5. I have already cleared the cache on the system and on my browser.

I would appreciate any clues. I will be using this user interface issue as a class example in my class on Monday. I can show a positive solution to the issue, or I can show it as an example that my students should stay clear of X-cart. I apologize for my semi-hostile statements, but it really shouldn't be this difficult. User Interface is a basic design element, not an "if we get around to it" option.

totaltec 10-12-2013 01:24 PM

Re: Changing the Javascript window size for Terms and Conditions
 
Nora,
Thanks for apologizing for your hostile tone. I have tested a solution to this problem just now, so you need not fear, I will provide the answer.

I want to take a moment and say that XC is one of the most battle tested e-commerce apps in the world. With it we create User-Friendly User Interface experiences. You are somewhat unfamiliar with the software, give it time.

I'll post the solution in a few hours, I have to run out the door right now.

Nora 10-13-2013 08:06 AM

Re: Changing the Javascript window size for Terms and Conditions
 
I sincerely appreciate any solutions you find. I have spent more time than my client finds reasonable to track through the code, the database, the dashboard and the online manual.

IHMO: Regarding the user-friendly solutions, WordPress is a tool to create user-friendly solutions ... Drupal is a tool to create user-friendly solutions ... every shopping cart plugin, module, web service, and software package is a tool to create user-friendly solutions. But each one is also judged on whether it is user-friendly to the developer, who is also a user.

For the developer who is also a coder, user-friendly means comments and a user-friendly manual or codex. Every time I work on an X-cart file, the first thing I have do, in the code I'm working on, is comment it. And, I am creating my own manual with screenshots for my client, "in case I get hit by a bus." My client has to pay for my commenting and documentation time, but my client will benefit because the next time I have to change it, my comments will make the task more efficient. I find that most software is poorly commented, including WordPress, Joomla and Drupal ... and X-cart.

Nora 10-13-2013 11:30 AM

Re: Changing the Javascript window size for Terms and Conditions
 
OK, I found a solution! The direct update to the database worked. When I cleared the cache in Tools -> Maintenance, I used "Force cache generation" instead of "Clear templates/X-Cart cache".

I have documented for my client that this code has to be changed through the database and then the cache has to be updated.

totaltec 10-13-2013 08:35 PM

Re: Changing the Javascript window size for Terms and Conditions
 
I am surprised it took a direct DB update, something must be wrong with your settings on the server. I apologize for not getting back to you, been handling some minor client emergencies.

One last thing this may throw some people off, bu there are two language variable that are very similar.

txt_terms_and_conditions_note //I bellieve this is displayed for existing customers
and
txt_terms_and_conditions_newbie_note //displayed for new customers.

Glad you worked it out! I agree Wordpres is much easier to customize, but it can't begin to scratch the surface of what XC can do. XC is not for beginners.

ambal 10-14-2013 12:23 AM

Re: Changing the Javascript window size for Terms and Conditions
 
Moved to X-Cart Customization > Storefront Design & Template Editing in v 4.5.x & 4.6.x as this is not an X-Payments issue or question.

Nora 10-14-2013 06:29 AM

Re: Changing the Javascript window size for Terms and Conditions
 
In any case, thanks for your replies!


All times are GMT -8. The time now is 07:12 PM.

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