Jump to content



Member Since 23 Jun 2011
Offline Last Active Nov 25 2020 07:10 AM

Topics I've Started

Cs Cart New License Prices

07 November 2020 - 05:51 AM

Hi All,


I was browsing CS Cart prices and was kinda of suppressed to see CS CART B2B/B2C for $790 monthly subscription ... The same one called Ultimate cost $790 (o similar) life time before. Is it a mistake or CS CART joined Shopify plus club?

CS Cart marketing department is the most unpredictable I have ever seen in the past 10 years, the prices and products are changing from free to sky level prices and back...

If they really plan to charge 800$ a month I believe many will go to search for other solutions. Specially when nothing is changed except the name...

Pass Transaction Data To Google Analytics Via Google Tag Manager

17 September 2020 - 08:34 AM


I need to use GTM to pass purchase data to GA. Preconditions: GTM container is working fine through add-on, Google analytics standard addon is disabled.
The problem is that all data is passed to order confirmation page (Checked with GTassistant and DataLayer preview) but it never appears in GA ecommerce Transaction Tab. Although Realtime Overview show the session correct. What can be the issue?

The following setup is implemented.

On the order_confirmation.post I have as follows:

window.dataLayer = window.dataLayer || [];
 'transactionId': '{$order_info.order_id}',
 'transactionAffiliation': '{$order_info.company_name}',
 'transactionTotal': '{$order_info.total}',
 'transactionTax': '{$order_info.tax_subtotal}',
 'transactionShipping': '{$order_info.shipping_cost}',

{foreach from=$order_info.products item="product" key="key"}
 'transactionProducts': [{
   'sku': '{$product.product_code}',
   'name': '{$product.product}',
   'category': '{$product.category_name}',
   'price': '{$product.price}',
   'quantity': '{$product.amount}'


In the GTM I have the following config:

Tag1: GA Ecommerce tracking
Tag type: GA Universal
Track type: Transaction
GA Settings: {{Google Analytics Settings}}
Triggering: Checkout success page - DOM ready

Tag2: Ecommerce Page View
Tag type: GA Universal
Track type: Event
Category: dataLayer
Action: ecommerce
GA Settings: {{Google Analytics Settings}}
Enabled overriding settings
Ecommerce: Enable EEF = true, Use data layer = Yes
Triggering: Thank you page - Page view

Tag3: GA All pages
Tag type: GA Universal
Track type: Page View
GA Settings: {{Google Analytics Settings}}
Triggering: All pages - Page view

Triggers config:

Thank you page
Trigger type: Page View
Some pages: Page URL contains index.php?dispatch=checkout.complete&order_id
Reference to this trigger: Ecommerce Page View

Checkout success page
Trigger type: Page View - DOM Ready
Some pages: Page URL contains index.php?dispatch=checkout.complete&order_id
Reference to this trigger: GA Ecommerce tracking

All pages
Trigger type: Page View
Triger fires on All Page Views

Variables config:

Google Analytics Settings:
Variable Type: Google Analytics Settings
Tracking ID {{GA-ID}}
Cookie Domain: auto
Ecommerce: Enable EE features = Yes, Use data layer = Yes
Reference to this variable: Ecommerce Page View, GA Ecommerce tracking, GA All pages

Variable Type: Lookup Table
Input Variable: {{Page Hostname}}
Input: domain.one, domain.two
Tracking ID {{GA-ID}}
Reference to this variable: Google Analytics Settings

Order ID:
Variable Type: Data Layer Variable
Data Layer Variable Name: transactionId
Data Layer Version: Version 2

Order Value:
Variable Type: Data Layer Variable
Data Layer Variable Name: transactionTotal
Data Layer Version: Version 2

Rest of the transaction variable are set in the same way.

Redsys Recieve Wrong Amount Format For Some Orders

19 August 2020 - 07:20 PM



I have version 4.9.3 and recently changed from PHP 7.0 to PHP 7.2 and now some orders do not send correct amount to Redsys payment processor. The redsys error SIS0019  => «Error de formato en Ds_Merchant_Amount»


I changed tax subtotal accuracy in fn.common to

$price = sprintf('%.' . $decimals . 'f', round((double) $price + 0.00000000001, 2));

but it did not help. Redys keeps receiving 0 total amount.


The weird thing is that it only happens with some products and orders.


How to fix it?




Backup Stops On Cscart_Orders

14 August 2020 - 08:32 PM



During back up the process visually stops on cscart_orders. The back up itself is done correct but i takes 40 minimum (you can observe bytes changing on back up page). The db table is 2G.


Currently using VPS: 4core + 8G Ram+ 160SSD (Maria DB 10.3), running PHP 7.2.32, FPM served by nginx.



worker_processes  auto;

worker_connections  4096;

worker_rlimit_nofile 100000;

sendfile        on;

keepalive_timeout  75;



CS CART version 4.9.2

@ini_set('memory_limit', '3072M');




memory_limit 3G


The site runs very fast, some 2.3 s/page load, But the only issue is Backup speed. When the database was 600M the process took some 3-4 minutes,


I tuned my.cnf a bit but did not notice big improvement.



innodb_buffer_pool_size = 2G
tmp_table_size= 128M
max_heap_table_size= 512M
innodb_log_file_size = 512M





I also checked CPU load during backup process and it is not more than 18%


Any idea what is the problem and how to increase the backup speed? Need to reach 3-5 min max backup process time.



User Group And Shipping Methods

21 June 2020 - 05:39 AM



I activated wholesale user group and activated one test customer in this group. In the shipping methods I created one method specifically for that group and marked Wholesale group. For all other methods I unchecked ALL users and marked only Invited and Registered. But when I log in as test customer and proceed to shipping method I still can see all of them and not only one for that group. Is it default CS CART behavior? or I do something wrong if I need to show only one shipping method for the certain group?