Jump to content

lordshop

Members
  • Posts

    75
  • Joined

  • Last visited

  • Days Won

    2

lordshop last won the day on October 14 2021

lordshop had the most liked content!

2 Followers

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

Rookie

Rookie (2/14)

  • Reacting Well Rare
  • Very Popular Rare
  • First Post Rare
  • Collaborator Rare
  • Week One Done Rare

Recent Badges

32

Reputation

  1. Το πιο ελαφρύ είναι καλό. Όσο πιο γρήγορο τόσο καλύτερα. Ωστόσο για την μεγαλύτερη κοινότητα δεν ξέρω, και στο presta δυσκολεύομαι να βρω υποστήριξη.
  2. επειδή ακούω να εκθειάζουν το Opencart θα με ενδιέφερε να μάθω από την εμπειρία σου. Γιατί αποφάσισες να το κατεβάσεις και να περάσεις σε Prestashop? Τι σου άρεσε στο presta και τι σου λείπει από το open?
  3. Μπα... στα μαθηματικά είναι το πτυχίο μου. Καλώς ήρθες και εσύ. Τώρα βλέπουμε τις υποσχέσεις σας, όμως να μας ενημερώσετε και όταν γίνουν πράξη. 💯
  4. δυό δυο από το φούρνο! Άντε με το καλό!!!
  5. 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.
  6. Ενημέρωσε με τον κωδικό κατασκευαστή στο σωστό πεδίο. Prestashop 1.7.7
  7. I had the same problem on 1.7.7 thank you for the simple solution I was unable to add a discount to a backoffice order
  8. Αυτό είναι το δικό μου 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
  9. Δυστυχώς ο Skroutz παίρνει μόνο ένα ID για όλο το χρώμα, συνήθως αυτό που στέλνεις εσύ είναι το πρώτο καταχωρημένο στην βάση. Ο πελάτης όμως μπορεί να πάρει άλλο νούμερο από αυτό που στέλνεις. Οπότε στον skroutz δεν πρέπει να στέλνεις αυτό που στην ουσία πούλησες αλλά το πρώτο καταχωρημένο στην βάση για το συγκεκριμένο χρώμα που μπήκε στο καλάθι.
  10. To enable the first switch, you need to enable also the second.
  11. 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.
  12. I have the same problem and I try to replace the line. In my 1.7.7.0 mail.php there is a bit different: $swift->registerPlugin(new Swift_Plugins_DecoratorPlugin([self::toPunycode($toPlugin) => $templateVars])); The problem persist and I still got the emails with the variables.
  13. 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?
  14. 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`
×
×
  • Create New...