Adapt Your Add-Ons From Cs-Cart 4.2.1 To Cs-Cart 4.2.2

Hello, everybody!



This is the next set of changes in cart functionality that can affect add-ons operation. CS-Cart 4.2.2 is mostly the bug fixing version, so, there are no functionality changes that can totally break the add-on working.





Here is the list of major changes:



In the app/Tygh/BlockManager/SchemesManager.php class the optional parameter $area was added for the generateTemplateName method:



[color=#b22222]- public static function generateTemplateName($path, $theme_path)[/color]

[color=#006400]+ public static function generateTemplateName($path, $theme_path, $area = AREA)[/color]



===============================================================================================



In the Mailer.php class the ability to use the “cc” (Carbon copy) parameter when sending messages was added. It is also possible to use SMTPSecure now (sending messages through servers using SSL).



===============================================================================================



Some methods in the app/Tygh/Themes/Styles.php class were changed:



[color=#a52a2a]- public function getStyleFile($style_id, $css = false)[/color]

[color=#006400]+ public function getStyleFile($style_id, $type = 'less')[/color]



[color=#a52a2a]- private function getStylesPath($get_relative = false)[/color]

[color=#006400]+ private function getStylesPath()[/color]



===============================================================================================



The new parameter was added to the fn_create_seo_name function:

[color=#a52a2a]- function fn_create_seo_name($object_id, $object_type, $object_name, $index = 0, $dispatch = , $company_id = , $lang_code = CART_LANGUAGE, $create_redirect = false)[/color][color=#008000]+function fn_create_seo_name($object_id, $object_type, $object_name, $index = 0, $dispatch = , $company_id = , $lang_code = CART_LANGUAGE, $create_redirect = false, $area = AREA)[/color]



===============================================================================================



The tweak lazy_thumbnails setting was added. This means that earlier the path for generating a thumbnail was something like that:


dispatch=images.generate&image=asdfsdf.gif....

And now:


/images/thumbnails/50/50/asdfasdf.gif







This is all major changes.

Best wishes!

Thank you for the information! Keep it up

Did you add BCC to the Mailer interface?

Have you exposed the port number in the Smtp configuration?

Does the cart itself now use the CC or are messages still sent individually for every action?



Suggest you use BCC for vendor/admin copies to notifications to customers. I.e. Invoices, etc. Anywhere the notify X department is used.

Dear Alexions,



Thank you a lot for this info.



Best regards, Alt-team.

Great! Thank you!

[quote name='tbirnseth' timestamp='1409175692' post='190876']

Did you add BCC to the Mailer interface?

Have you exposed the port number in the Smtp configuration?

Does the cart itself now use the CC or are messages still sent individually for every action?



Suggest you use BCC for vendor/admin copies to notifications to customers. I.e. Invoices, etc. Anywhere the notify X department is used.

[/quote]



Yes and please give us much more flexibility as well when it comes to sending mails!

Hello, Tony!


[quote name='tbirnseth' timestamp='1409175692' post='190876']

Did you add BCC to the Mailer interface?

[/quote]

[quote name='tbirnseth' timestamp='1409175692' post='190876']

Does the cart itself now use the CC or are messages still sent individually for every action?

[/quote]



E-Mail message depends on many factors. First of all - language.

Before an e-mail will be send, cart checks the admin/order dept/customer language and prepares personal text.



So we do not need cc/bcc fields. Usually each e-mail is unique.

And you are right, messages are still sent individually for every action.


[quote name='tbirnseth' timestamp='1409175692' post='190876']

Have you exposed the port number in the Smtp configuration?

[/quote]



You can specify SMPT host with a colon, like “example.com:1234


[quote name='tbirnseth' timestamp='1409175692' post='190876']

Suggest you use BCC for vendor/admin copies to notifications to customers. I.e. Invoices, etc. Anywhere the notify X department is used.

[/quote]



Good idea, I posted a feature request.

Thank you for the message!

Note that from a legal perspective, using separate emails as evidence in a dispute doesn't go very far. Showing an email to the customer and either a CC or bcc to the merchant in one document carries a lot more weight. Especially for invoices and ship notifications.