-
Posts
75 -
Joined
-
Last visited
-
Days Won
2
lordshop last won the day on October 14 2021
lordshop had the most liked content!
Contact Methods
- Website
Profile Information
-
Location
Greece
-
Activity
User/Merchant
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
lordshop's Achievements
-
Invalid $number parameter: "" cannot be interpreted as a number
lordshop replied to alj's topic in General topics
thanks, same problem multistore 1.7.7.7 -
Πρόβλημα με νέα καθαρή εγκατάσταση Presta 1.7.8.8
lordshop replied to d3s1gn3r's topic in Ελληνικά [Greek]
Το πιο ελαφρύ είναι καλό. Όσο πιο γρήγορο τόσο καλύτερα. Ωστόσο για την μεγαλύτερη κοινότητα δεν ξέρω, και στο presta δυσκολεύομαι να βρω υποστήριξη. -
Πρόβλημα με νέα καθαρή εγκατάσταση Presta 1.7.8.8
lordshop replied to d3s1gn3r's topic in Ελληνικά [Greek]
επειδή ακούω να εκθειάζουν το Opencart θα με ενδιέφερε να μάθω από την εμπειρία σου. Γιατί αποφάσισες να το κατεβάσεις και να περάσεις σε Prestashop? Τι σου άρεσε στο presta και τι σου λείπει από το open? -
Μπα... στα μαθηματικά είναι το πτυχίο μου. Καλώς ήρθες και εσύ. Τώρα βλέπουμε τις υποσχέσεις σας, όμως να μας ενημερώσετε και όταν γίνουν πράξη. 💯
-
δυό δυο από το φούρνο! Άντε με το καλό!!!
-
So stupid indeed. I was searching it about 30min. Ver 1.7.7.7 Just use ctrl-scroll-wheel to make smaller the screen context and they will reappear.
- 2 replies
-
- product combination
- combination
- (and 8 more)
-
-
Αυτό είναι το δικό μου skroutzanalytics.php στο live site. <?php if (!defined('_PS_VERSION_')) exit; class skroutzAnalytics extends Module { protected $_errors = array(); public function __construct() { $this->name = 'skroutzanalytics'; $this->tab = 'front_office_features'; $this->version = '2.2'; $this->author = 'none'; $this->need_instance = 0; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('Skroutz Analytics'); $this->description = $this->l('Adds a block.'); $this->confirmUninstall = $this->l('Are you sure you want to delete this module?'); } public function install() { if (!parent::install() OR !$this->registerHook('orderConfirmation') OR !$this->registerHook('header') ) return false; return true; } public function uninstall() { if (!parent::uninstall()) return false; return true; } public function getContent() { $html = ''; if (Tools::isSubmit('submitUpdate')) { Configuration::updateValue('SKROUTZANALYTICS_ID', htmlspecialchars(Tools::getValue('accountid'), ENT_QUOTES)); $html .= $this->displayConfirmation($this->l('Settings Updated')); } $html .= '<form action="'.htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES).'" method="post" class="defaultForm form-horizontal"> <div class="panel"> <div class="panel-heading">'.$this->l('Settings').'</div> <div class="form-group"> <label class="control-label col-lg-3">'.$this->l('Shop Account ID').'</label> <div class="col-lg-6"> <input type="text" name="accountid" value="'.Configuration::get('SKROUTZANALYTICS_ID').'"> </div> </div> <input type="submit" name="submitUpdate" value="'.$this->l('Save').'" class="btn btn-default"> </div> </form>'; return $html; } public function hookHeader($params) { $skroutz_id = Configuration::get('SKROUTZANALYTICS_ID'); $this->context->smarty->assign(array( 'skroutz_id' => $skroutz_id )); return $this->display(__FILE__, 'skroutzanalyticsscript.tpl'); } public function hookOrderConfirmation($params) { if (!empty($params['order'])) { $order = $params['order']; } else if (!empty($params['objOrder'])) { $order = $params['objOrder']; } if (empty($order) || !is_object($order)) { return false; } $products = $order->getProducts(); foreach ($products as $k => $p) { $products[$k]['product_attribute_id'] = $this->getCombinationId($p['id_product'], $p['product_attribute_id']); } $this->context->smarty->assign(array( 'order'=> $order, 'order_products' => $products, )); return $this->display(__FILE__, 'skroutzanalytics.tpl'); } protected function getCombinationId($productId, $combinationId) { $id_lang = Configuration::get('PS_LANG_DEFAULT'); $id_lang = !empty($id_lang) ? $id_lang : 1; $combinationIdNew = $combinationId; $colorGroup = 4; $productAttributeId = 0; $productColorAttributeId = 0; $allCombinationsWithTheSameColor = []; $product_class = new Product($productId, false, $id_lang); $combinations = $product_class->getAttributesResume($id_lang, ' ', ', '); $productAttributes = $product_class->getAttributesGroups($id_lang); if (empty($combinations)) { return $combinationId; } foreach ($productAttributes as $p) { if ($p['id_product_attribute'] == $combinationId && $p['id_attribute_group'] == $colorGroup) { $productColorAttributeId = $p['id_attribute']; break; } } foreach ($productAttributes as $p) { if ($productColorAttributeId == $p['id_attribute']) { $allCombinationsWithTheSameColor[] = $p['id_product_attribute']; } } if (!empty($allCombinationsWithTheSameColor)) { foreach ($combinations as $c) { if ($c['quantity'] < 1) { continue; } if (in_array($c['id_product_attribute'], $allCombinationsWithTheSameColor)) { return $c['id_product_attribute']; } } } return $combinationIdNew; } } skroutzanalytics.php
-
Δυστυχώς ο Skroutz παίρνει μόνο ένα ID για όλο το χρώμα, συνήθως αυτό που στέλνεις εσύ είναι το πρώτο καταχωρημένο στην βάση. Ο πελάτης όμως μπορεί να πάρει άλλο νούμερο από αυτό που στέλνεις. Οπότε στον skroutz δεν πρέπει να στέλνεις αυτό που στην ουσία πούλησες αλλά το πρώτο καταχωρημένο στην βάση για το συγκεκριμένο χρώμα που μπήκε στο καλάθι.
-
To enable the first switch, you need to enable also the second.
-
Hello, I have a multishop at www.lord.gr and I wan't enable webservices. I have try to enable them a few times but when I go to YES and save, the switch is returning to NO. In the www.lord.gr/api it asking for user/pass but if I use the authentication key is refusing to accept it.
-
Show the hidden Customer address field on Backoffice Order Page
lordshop replied to lordshop's topic in General topics
I have added /src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/Blocks/View/customer.html.twig under the <p class="mb-0">{{ orderForViewing.shippingAddress.fullName }}</p> {% if orderForViewing.shippingAddress.vatNumber is not empty %} <p class="mb-0">{{ orderForViewing.shippingAddress.vatNumber }}</p> {% endif %} also I have replace in src\Adapter\Order\QueryHandler\GetOrderForViewingHandler.php the public function getOrderShippingAddress(Order $order): OrderShippingAddressForViewing with public function getOrderShippingAddress(Order $order): OrderShippingAddressForViewing { $address = new Address($order->id_address_delivery); $country = new Country($address->id_country); $stateName = ''; if ($address->id_state) { $state = new State($address->id_state); $stateName = $state->name; } $vatNumber = $address->vat_number; return new OrderShippingAddressForViewing( $address->id, $address->firstname, $address->lastname, $address->company, $address->address1, $address->address2, $stateName, $address->city, $country->name[$order->id_lang], $address->postcode, $address->phone, $address->phone_mobile, $vatNumber ); } and 3: in the \src\Core\Domain\Order\QueryResult\OrderShippingAddressForViewing.php I have replace public function __construct private $vatNumber; public function __construct( int $addressId, string $firstName, string $lastName, string $companyName, string $address1, string $address2, string $stateName, string $cityName, string $countryName, string $postCode, string $phone, string $phoneMobile, string $vatNumber ) { $this->addressId = $addressId; $this->firstName = $firstName; $this->lastName = $lastName; $this->companyName = $companyName; $this->address1 = $address1; $this->address2 = $address2; $this->stateName = $stateName; $this->cityName = $cityName; $this->countryName = $countryName; $this->postCode = $postCode; $this->phoneNumber = $phone; $this->mobilePhoneNumber = $phoneMobile; $this->vatNumber = $vatNumber; } public function getVatNumber() { return $this->vatNumber; } the backoffice is working OK But I don't see the VAT number in the order and also I what to add the address notes. Any hint?- 8 replies
-
- 1
-
- 1.7.7
- backoffice
-
(and 1 more)
Tagged with:
-
Admin Cart gives error 500 when trying to use it
lordshop replied to Crossbones's topic in General topics
did you check that the ID you have updated is the ID of a currency at your eshop? SELECT * FROM `ps_currency` Need to be active=1 and delete=0 and then the same ID be in : SELECT * FROM `ps_currency_shop`