X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   News and Announcements (https://forum.x-cart.com/forumdisplay.php?f=28)
-   -   Pop-up Anywhere module released (https://forum.x-cart.com/showthread.php?t=66512)

karina 05-30-2013 05:09 AM

Re: Pop-up Anywhere module released
 
Quote:

Originally Posted by beetlejuice
Looks like a great addon Karina but I would like to see the option if it is possible, to have the pop-up appear when a word, sentence or paragraph is highlightedin the description area of a product.

beetlejuice


Thank you for feedback and your idea! Could you please share any store as an example of your idea? Or could you please specify how such feature can be used to be useful for customers?

karina 06-03-2013 12:47 AM

Re: Pop-up Anywhere module released
 
Pop-up Anywhere module is updated!

1. Now admin can schedule pop-ups for certain period with new setting 'Show in period' (set 'from date' and 'to date' with datepicker)

http://dev.qtmsoft.com/~karina/images/popup_anywhere_admin_popup_settings_show_in_period .png

http://dev.qtmsoft.com/~karina/images/popup_anywhere_admin_popups_management_with_status .png



2. New option for 'Pop-up will be shown' setting: 'When customer clicks the link'. This kind of pop-ups can be used to create pop-ups specific for your store. As the example, I've created 'Size guide' pop-up.

http://dev.qtmsoft.com/~karina/images/popup_anywhere_when_customer_clicks_the_link.png

http://dev.qtmsoft.com/~karina/images/popup_anywhere_customer_size_guide.png


3. Minor bug related to coupon discount value and X-Multicurrency is fixed.

4. 'Coupon settings' section is improved (coupon type is defined by selector now).

5. 'Show popup to all customers even if they have already seen it' selector is changed to button (if pop-up must be shown once per N days and pop-up content is changed administrator can use this button to force showing of pop-up).


The new version is in File Area already.

If you've already have installed module and want to get these improvements, please follow the instructions (no re-installation is required):
1. Unpack an updated distributive into a temp directory on your system
2. Apply 'sql/popup_anywhere_patch_upgrade_v10_v110.sql' from unpacked module distributive via Admin -> Patch/Upgrade Center, 'Apply SQL-patch' section.
3. Copy all module's files from temp directory (step 1) to your X-Cart directory to replace old files.
4. Clear X-Cart cache in admin area via 'Tools -> Maintance -> Clear templates/X-Cart cache'

AGRCooper 06-03-2013 02:35 AM

Re: Pop-up Anywhere module released
 
Hi,

I’ve downloaded and applied the update... table changes have been applied.. latest modules copied over.

The new start and end date fields appear on the options screen.

BUT Now I when I try to save options or even create a new Pop-up I get…

Access denied !
Attempt to write data to a missing field of the table. Try to remove X-Cart cache to solve the problem.

Error ID: 79


I have cleared the cache a number of times but still get the error every time I do a save??

candc 06-03-2013 03:37 AM

Re: Pop-up Anywhere module released
 
Hi,

We also seem to have a problem with sql errors.

Error code : 1146 Description : Table '.XC_TBL_PREFIXpopups' doesn't exist

karina 06-03-2013 03:50 AM

Re: Pop-up Anywhere module released
 
Quote:

Originally Posted by candc
Hi,

We also seem to have a problem with sql errors.

Error code : 1146 Description : Table '.XC_TBL_PREFIXpopups' doesn't exist


I've checked the distribituves and found out that 'modules/Popup_Anywhere/config.php' file was updated to the new version in all distributives and contain XC_TBL_PREFIX constant. But XC_TBL_PREFIX is used since X-Cart 4.5.3 only. The distributives are updated, please re-upload the module from File Area once again.

If store is X-Cart 4.5.2 or below then 'modules/Popup_Anywhere/config.php' file must contain this part of code:
PHP Code:

$sql_tbl['popups'] = 'xcart_popups';
$sql_tbl['popups_settings'] = 'xcart_popups_settings' 


If store is X-Cart 4.5.3 or above then 'modules/Popup_Anywhere/config.php' file must contain this part of code:
PHP Code:

$sql_tbl['popups'] = XC_TBL_PREFIX 'popups';
$sql_tbl['popups_settings'] = XC_TBL_PREFIX 'popups_settings' 


karina 06-03-2013 03:55 AM

Re: Pop-up Anywhere module released
 
Quote:

Originally Posted by AGRCooper
Hi,

I▓ve downloaded and applied the update... table changes have been applied.. latest modules copied over.

The new start and end date fields appear on the options screen.

BUT Now I when I try to save options or even create a new Pop-up I get┘

Access denied !
Attempt to write data to a missing field of the table. Try to remove X-Cart cache to solve the problem.

Error ID: 79


I have cleared the cache a number of times but still get the error every time I do a save??


Usually this error means that the database cache is not regenerated. This cache is stored in <xcart_root_dir>/var/cache directory. There are two way to re-generate cache:
1. In admin area via 'Tools -> Maintance -> Clear templates/X-Cart cache'
2. Via console or FTP delete all files from <xcart_root_dir>/var/cache.

AGRCooper 06-03-2013 04:11 AM

Re: Pop-up Anywhere module released
 
On advice from support desk I manually deleted all files from <xcart_root_dir>/var/cache.

Seems to have fixed it, doing a save doesn't crash now.

karina 06-03-2013 04:33 AM

Re: Pop-up Anywhere module released
 
Quote:

Originally Posted by AGRCooper
On advice from support desk I manually deleted all files from <xcart_root_dir>/var/cache.

Seems to have fixed it, doing a save doesn't crash now.


Glad to hear that the issue is resolved!

candc 06-05-2013 04:35 AM

Re: Pop-up Anywhere module released
 
We have resolved all the errors now, but I am not sure it has all worked correctly.

The time period is not showing, and the only popups that I can get working is the size guide and the top notification bar.

I have tried redoing the upgrade patche and am getting this error.

SQL PATCH FAILED AT QUERY:
ALTER TABLE xcart_popups ADD `start_date` int(11) NOT NULL default '0' AFTER `is_enabled`

And then a DB SQL error
SQL query : ALTER TABLE xcart_popups ADD `start_date` int(11) NOT NULL default '0' AFTER `is_enabled` Error code : 1060 Description : Duplicate column name 'start_date' Request URI: /admin/patch.phpAll a bit of a mess:-)

There is an uninstall patch, but still get errors. Is there a particular sequence the patches need applying after uninstalling?

There is also 2 popup anywhere modules listed on the modules page.

Any suggestions would be appreciated :D

karina 06-05-2013 06:15 AM

Re: Pop-up Anywhere module released
 
Quote:

Originally Posted by candc
We have resolved all the errors now, but I am not sure it has all worked correctly.

The time period is not showing, and the only popups that I can get working is the size guide and the top notification bar.

I have tried redoing the upgrade patche and am getting this error.

SQL PATCH FAILED AT QUERY:
ALTER TABLE xcart_popups ADD `start_date` int(11) NOT NULL default '0' AFTER `is_enabled`

And then a DB SQL error
SQL query : ALTER TABLE xcart_popups ADD `start_date` int(11) NOT NULL default '0' AFTER `is_enabled` Error code : 1060 Description : Duplicate column name 'start_date' Request URI: /admin/patch.php
All a bit of a mess:-)

There is an uninstall patch, but still get errors. Is there a particular sequence the patches need applying after uninstalling?

There is also 2 popup anywhere modules listed on the modules page.

Any suggestions would be appreciated :D


Quote:

The time period is not showing,

Do you mean time period on the 'Pop-ups management' page or on 'Pop-up settings' page?
If you mean 'Pop-ups management' then please check if you have 'txt_popup_status_period' language variable.
If it's absent then please apply this SQL via 'Apply SQL patch' section:
REPLACE INTO xcart_languages SET code='en', name='txt_popup_status_period', value='availability period: {{start_date}} - {{end_date}}', topic='Text';
Or simply insert new language variable with the name 'txt_popup_status_period' and value='availability period: {{start_date}} - {{end_date}}'.

Quote:

I have tried redoing the upgrade patche and am getting this error.
SQL errors about duplicate column mean that patch was already applied. There is nothing to do special to change it. Please, do not apply sql-patches for module once again :)

Quote:

the only popups that I can get working is the size guide and the top notification bar.

Please check the 'Show in period' on 'Pop-up settings' page. Are the dates actual?

Quote:

There is also 2 popup anywhere modules listed on the modules page.
I've tried to reproduce somehow this issue, but with no success: SQL doesn't allow me to insert two rows into xcart_modules with module_name='Popup_Anywhere'. So I couldn't say exactly the reason of this issue. To fix it you can delete one of rows (via Phpmyadmin or mysql console): there is no link between module_id and module availability, just the 'module_name' value is important.

----

What is the current state of the module in your store?

If the module still doesn't working, you can post a new ticket via HelpDesk and we will sort it out for you.


All times are GMT -8. The time now is 06:33 AM.

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