Jump to content

 

lc242

Member Since 19 Nov 2020
Offline Last Active Today, 03:37 PM
*----

Posts I've Made

In Topic: Sender Name In Notification Email

06 March 2021 - 03:58 PM

 

For the latest versions open the following file

 

app/schemas/notifications/events.php

 

and replace

 

        UserTypes::CUSTOMER => [
            MailTransport::getId() => MailMessageSchema::create([
                'area'            => SiteArea::STOREFRONT,
                'from'            => 'company_orders_department',
                'to'              => DataValue::create('order_info.email'),
                'template_code'   => DataValue::create('template_code'),
                'legacy_template' => 'orders/order_notification.tpl',
                'company_id'      => DataValue::create('order_info.company_id'),
                'storefront_id'   => DataValue::create('order_info.storefront_id'),
                'language_code'   => DataValue::create('order_info.lang_code', CART_LANGUAGE)
            ]),
        ],
 

with

 

        UserTypes::CUSTOMER => [
            MailTransport::getId() => MailMessageSchema::create([
                'area'            => SiteArea::STOREFRONT,
                'from'            => 'default_company_orders_department',
                'to'              => DataValue::create('order_info.email'),
                'template_code'   => DataValue::create('template_code'),
                'legacy_template' => 'orders/order_notification.tpl',
                'company_id'      => DataValue::create('order_info.company_id'),
                'storefront_id'   => DataValue::create('order_info.storefront_id'),
                'language_code'   => DataValue::create('order_info.lang_code', CART_LANGUAGE)
            ]),
        ],

Then clear cache

 

(!) Not tested

 

 

Hi eComLabs,

 

Thanks for your response, it actually worked.

 

Once again big thanks.

 

Regards,

LC


In Topic: Sender Name In Notification Email

04 March 2021 - 06:10 PM

I managed to fix it by adding the bolded code into the app/functions/fn.cart.php file:

// Notify customer
if ($notify_user == true) {

$_from = array(
'email' => 'muemail@domain.com',
'name' => 'New_Name'
);


Mailer::sendMail(array(
'to' => $order_info['email'],
'from' => $_from,
'data' => array(...
..............................

 

Hello,

 

I have the same problem regarding the vendor's name appearing on customers email notification (Multivendor 4.11). I don't understand where should I add that piece of code into the app/functions/fn.cart.php file. Could you please give more precision ?

 

Thanks in advance for responding.

 

LC


In Topic: Manufacturer Link On Product Details Page

01 March 2021 - 08:50 PM

In the mentioned template just replace

{if $feature_image && $feature.variants[$feature.variant_id].image_pairs}

with

{if $feature_image && $feature.variants[$feature.variant_id].image_pairs && false}

It should solve your problem

 

 

Hey eComLabs,

 

 

I'm afraid you're right again. It works perfectly as I wanted. 

 

Thank you very much. Been struggling with this for the longest time.

 

 

All the best,

LC


In Topic: Manufacturer Link On Product Details Page

27 February 2021 - 11:33 AM

design/themes/THEME/templates/views/products/components/product_features_short_list.tpl
 
change

{if $feature.features_hash && $feature.feature_type == "ProductFeatures::EXTENDED"|enum}
<a href="{"categories.view?category_id=`$product.main_category`&features_hash=`$feature.features_hash`"|fn_url}">
with
{if $feature.feature_type == "ProductFeatures::EXTENDED"|enum}
<a href="{"product_features.view?variant_id=`$feature.variant_id`"|fn_url}">
and
{if $feature.feature_type == "ProductFeatures::EXTENDED"|enum && $feature.features_hash}
with
{if $feature.feature_type == "ProductFeatures::EXTENDED"|enum}

 
Thanks for this eComLabs, it works perfectly!
 
I have another query if you all don't mind. Because I really don't like the default Vendor pages I figured out a way to use Brand features to get all products of the same brand on a same page. So basically, when I create a brand feature (WITHOUT an image), I get now a clickable link (see image 1) on the product detail page which redirects me to a brand's page as explained above (I followed eComLabs post).
 
My only problem now is when I add an image for one brand's feature. The image will be displayed on the brand's page just like image 2 (which is exactly what I want).

 

The problem is that the image (instead of the link) also appears on the product details page (see image 3). Although the image is clickable, it redirects me to the brand's other products in the same category as the product (just like the very first post of this topic).

 

So now here is my query. When I insert an image to a brand's feature: 
 
1. I DO want the image to remains on the brand page (just as indicated in image 2): 
 
2. I DO NOT want the image to be displayed on the product detail page (just as shown in image 3). 
 
3. Finally I still DO want to see the link which redirects to the brand page (just as shown in image 1).
 
I truly believe that I need to make further modifications to the product_features_short_list file but I don't know what.
 
 
Could you please give me a hand on this one. Thanks in advance for reading this.
 
 
LC

In Topic: Paypal For Commerce

17 January 2021 - 10:24 PM

hey ,

 

you need to get in touch with cs cart , they arrange for you to speak with a business manager and give you a code etc 

You need to have your terms and conditions ready . 

 

 jiinc , (above) is currently using it, and as far as I know he had a bit of issues with it . (research paypal in forum ) his posts comes first !

Sorry i cant be of more help for now 

 

Hi Saltwater,

 

Thanks for your message.

 

I already provided all the info CS-Cart needed and they say they will provide them to Paypal, they sent several emails to them but I never heard from them since then.

 

it would be a lie not to say how intense my frustration is regarding this issue.

 

Regards,