Jump to content

Αλλαγή συνολική τιμη courier προγραμματιστικα


apomed
 Share

Recommended Posts

Καλησπέρα σας,

εχω φτιαξει ενα module με το οποιο οταν θα εμφανιζετε η λιστα με τους courier να αλλαξω τις τιμες τους προγραμματιστικα. Εχω σκεφθει αυτο αλλα δεν λειτουργει

public function hookDisplayBeforeCarrier($params) 
    {
        $delivery_option_list = $params['delivery_option_list'];
        foreach($delivery_option_list as $id_address => $carrier_list_raw) {
           foreach($carrier_list_raw as $key => $carrier_list) {
                foreach($carrier_list['carrier_list'] as $id_carrier => $carrier) {
                    $delivery_option_list[$id_address][$key]['total_price_with_tax'] = 2;
                }
           }
        }

        $this->context->smarty->tpl_vars["delivery_option_list"]->value = $delivery_option_list;
    }

Αν καποιος εχει εμπειρια πανω στο prestashop σε επίπεδο προγραμματιστικο θα ενδιαφερομουν για να απασχόλησω καποιον.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More