Jump to content
thirty bees forum

Pedalman

Members
  • Posts

    421
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Pedalman

  1. Hello I could get it working again after totally deleting module's folder and also! /img/belvg_stickerspro. Eventually I could install it as new module and stickers appeared again. I want to add that resetting and normal deinstall did not work. So, all is fine at the moment. Thank you
  2. Hello I do not know whether there is a difference between PS1.6 and TB's image controller but my BELVG Sticker PRO module fails to create my "sticker badges" on product thumb. Here is code of two admin controller overrides it needs: AdminImportController.php <?php class AdminImportController extends AdminImportControllerCore { public function __construct() { parent::__construct(); if (Tools::getValue('entity') == $this->entities[$this->l('Products')]) { $this->available_fields['belvg_stickerspro'] = array('label' => $this->l('Belvg StickersPro')); } } public function productImport() { parent::productImport(); $this->receiveTab(); $handle = $this->openCsvFile(); for ($current_line = 0; $line = fgetcsv($handle, MAX_LINE_SIZE, $this->separator); $current_line++) { if (Tools::getValue('convert')) { $line = $this->utf8EncodeArray($line); } $info = AdminImportController::getMaskedRow($line); if (Tools::getValue('forceIDs') && isset($info['id']) && (int)$info['id']) { $product = new Product((int)$info['id']); } elseif (Tools::getValue('match_ref') && array_key_exists('reference', $info)) { $datas = Db::getInstance()->getRow(' SELECT p.`id_product` FROM `'._DB_PREFIX_.'product` p '.Shop::addSqlAssociation('product', 'p').' WHERE p.`reference` = "'.pSQL($info['reference']).'" '); if (isset($datas['id_product']) && $datas['id_product']) { $product = new Product((int)$datas['id_product']); } else { $product = new Product(); } } elseif (array_key_exists('id', $info) && (int)$info['id'] && Product::existsInDatabase((int)$info['id'], 'product')) { $product = new Product((int)$info['id']); } else { //$product = new Product(); continue; } //Belvg StickersPro logic $belvg_stickerspro_module = Module::getInstanceByName('belvg_stickerspro'); if (is_object($belvg_stickerspro_module) && $belvg_stickerspro_module->id) { $stickers = explode($this->multiple_value_separator, $info['belvg_stickerspro']); if (count($stickers)) { $ids_stickers = array(); foreach ($stickers as $sticker) { if ($sticker) { $ids_stickers[$sticker] = 1; } } if (count($ids_stickers)) { $sticker_flag = TRUE; $sticker_flag &= BelvgStickersProProduct::deleteDataForProduct((int)$product->id, $ids_stickers, Context::getContext()->shop->id); $sticker_flag &= BelvgStickersProProduct::setDataForProduct((int)$product->id, $ids_stickers, Context::getContext()->shop->id); if ($sticker_flag) { $sticker_flag &= $belvg_stickerspro_module->applyStickersToImage($product->id, $ids_stickers); if ($sticker_flag) { $sticker_flag &= BelvgStickersProIndexer::deleteItemsByProductId((int)$product->id); } } } } } } $this->closeCsvFile($handle); } } AdminImagesController.php class AdminImagesController extends AdminImagesControllerCore { /** * AdminImagesController::__construct() * * @return void */ public function __construct() { require_once (_PS_MODULE_DIR_ . 'belvg_stickerspro/classes/Belvg_StickersPro.php'); parent::__construct(); $this->fields_list['stickers'] = array( 'title' => $this->l('Stickers'), 'width' => 50, 'align' => 'center', 'type' => 'bool', 'callback' => 'printEntityActiveIcon', 'orderby' => FALSE); //Belvg StickersPro $this->_select .= 'belvg_sit.stickers'; $this->_join .= ('LEFT JOIN `' . _DB_PREFIX_ . 'belvg_stickerspro_image_type` belvg_sit ON (a.`id_image_type` = belvg_sit.`id_image_type`)'); $this->fields_form['input'][] = array( 'type' => 'switch', 'label' => $this->l('Stickers'), 'name' => 'stickers', 'required' => FALSE, 'class' => 't', 'is_bool' => TRUE, 'hint' => $this->l('This type will be used for stickers feature.'), 'values' => array( array( 'id' => 'stickers_on', 'value' => 1, 'label' => $this->l('Enabled')), array( 'id' => 'stickers_off', 'value' => 0, 'label' => $this->l('Disabled')), )); //Belvg StickersPro } /** * AdminImagesController::renderForm() * * @return */ public function renderForm() { if (is_object($this->object)) { $stickerspro_values = BelvgStickersProModel::getImageTypesData($this->object-> id); if (!empty($stickerspro_values)) { $this->fields_value['stickers'] = $stickerspro_values['stickers']; //$this->fields_value['sticker_height'] = $stickerspro_values['sticker_height']; //$this->fields_value['sticker_width'] = $stickerspro_values['sticker_width']; } } return parent::renderForm(); } /** * AdminImagesController::postProcess() * * @return */ public function postProcess() { $return = parent::postProcess(); //$id_image_type = Tools::getValue('id_image_type'); $stickers = Tools::getValue('stickers'); $products = Tools::getValue('products'); if (empty($this->errors)) { $is_add = Tools::getValue('submitAddimage_type'); if ($is_add) { //$is_exists = BelvgStickersProModel::checkExistsByImageTypeId($id_image_type); //if (!$is_exists) { $object = $this->loadObject(); if (!$products) { $stickers = 0; } BelvgStickersProModel::addTypeByImageTypeId($object->id, $stickers['stickers']); //} } } return $return; } /** * AdminImagesController::processDelete() * * @return bool */ public function processDelete() { $return = parent::processDelete(); $id_image_type = Tools::getValue('id_image_type'); BelvgStickersProModel::deleteTypeByImageTypeId($id_image_type); return $return; } public function renderList() { $html = parent::renderList(); $this->context->smarty->assign(array( 'belvg_stickerspro_submit' => $this->context->link->getAdminLink('AdminStickersPro'), 'belvg_stickerspro_list' => BelvgStickersProIndexer::getItems(0, 0), 'belvg_stickerspro_last_records' => BelvgStickersProIndexer::getItems(0, 5), )); $html .= $this->context->smarty->fetch(_PS_MODULE_DIR_ . '/belvg_stickerspro/views/templates/admin/indexer.tpl'); return $html; } } Can someone see on the run if there is a conflict or might provide a solution?
  3. Warehouse theme comes with iquitcontenteditor module for custom builds of start page. It allows to enter html boxes and also custom hooks as content. I would like to add Datakick's Revw in a caertain way. I want to show a customer review of a certain product (or a selection of them in slider form^^): {hook h='displayRevwsReview' review=2} I fail to make it work with Warehouse. Can someone help out pls?
  4. Sorry, I asked too early and could solve it for now. If it is correct so or the best way I do not know but seems to work for now. I switched the two info parts that were embraced into divs to spans and put the whole block into one div. Html learning course 1st. class 1. hour <div class="tax_infos_aeuc"> {* "Tax Inc/Exc" Price Hook templating *} {if isset($smartyVars.price) && isset($smartyVars.price.tax_str_i18n)} <span class={if isset($smartyVars.price.css_class)} "{$smartyVars.price.css_class|escape:'htmlall'}" {else} "aeuc_tax_label" {/if}> {$smartyVars.price.tax_str_i18n|escape:'htmlall'} </span> {/if} {* "Shipping CMS content" Price Hook templating *} {if isset($smartyVars.ship) && isset($smartyVars.ship.link_ship_pay) && isset($smartyVars.ship.ship_str_i18n)} <span class="aeuc_shipping_label"> {*es war ITO 23.10.18 <a href="{$smartyVars.ship.link_ship_pay}" class="iframe" } *} <a href="{$smartyVars.ship.link_ship_pay}" class="iframe" rel="nofollow"> {$smartyVars.ship.ship_str_i18n|escape:'htmlall'} </a> </span> {/if} </div>
  5. Hello I'd like to show tax and shipment info relating to Advanced EU compliance (module) in one row under price. More or less clean like in the screenshot. The code is hooked into product.tpl and is in modules/advancedeucompliance/views/templates/hook/hookDisplayProductPriceBlock.tpl I can get the first info (tax info) into a new line under price easily via </br> at the top of code but I fail today to get the infos into one line under Price 🙂 {if isset($smartyVars)} {* "From" Price Hook templating *} {if isset($smartyVars.before_price) && isset($smartyVars.before_price.from_str_i18n)} <span class="aeuc_from_label"> {$smartyVars.before_price.from_str_i18n|escape:'htmlall'} </span> {/if} {* "Before" Price Hook templating *} {if isset($smartyVars.old_price) && isset($smartyVars.old_price.before_str_i18n)} <span class="aeuc_before_label"> {$smartyVars.old_price.before_str_i18n|escape:'htmlall'} </span> {/if} {* "Tax Inc/Exc" Price Hook templating *} {if isset($smartyVars.price) && isset($smartyVars.price.tax_str_i18n)} <span class={if isset($smartyVars.price.css_class)} "{$smartyVars.price.css_class|escape:'htmlall'}" {else} "aeuc_tax_label" {/if}> {$smartyVars.price.tax_str_i18n|escape:'htmlall'} </span> {/if} {* "Shipping CMS content" Price Hook templating *} {if isset($smartyVars.ship) && isset($smartyVars.ship.link_ship_pay) && isset($smartyVars.ship.ship_str_i18n)} <div class="aeuc_shipping_label"> {*es war ITO 23.10.18 <a href="{$smartyVars.ship.link_ship_pay}" class="iframe" } *} <a href="{$smartyVars.ship.link_ship_pay}" class="iframe" rel="nofollow"> {$smartyVars.ship.ship_str_i18n|escape:'htmlall'} </a> </div> {/if} {* "Weight" Price Hook templating *} {if isset($smartyVars.weight) && isset($smartyVars.weight.rounded_weight_str_i18n)} <div class="aeuc_weight_label"> {$smartyVars.weight.rounded_weight_str_i18n|escape:'htmlall'} </div> {/if} {* "Delivery Estimation" Price Hook templating *} {if isset($smartyVars.after_price) && isset($smartyVars.after_price.delivery_str_i18n)} <div class="aeuc_delivery_label"> {$smartyVars.after_price.delivery_str_i18n|escape:'htmlall'} </div> {/if} {/if}
  6. Hello I got a question concerning combinations or variants of a product. Let's assume I got a new product in colors red and blue. First I have to create a new product let's call it T-shirt since it is a new product TB and PrestaShop asked me to enter name, the reference code of my shop for articles and EAN -13 number. My shop sales already 99 products so the new product will be number 100 in the internal database. So I enter reference code 100. Here comes the question EAN -13 is specific for the variant blue or red. So I can skip it here and I have to enter these numbers under the tab of combinations. Is this this the correct way or do I have to proceed in another way like: the new product is also the first variant and I only add for example the red one. My exported and shortened Google feed via module GoogleFlux: <item> <g:id>100-97</g:id> <title><![CDATA[t-shirt]]></title> <description><![CDATA[ "desc]]></description> <g:gtin>1234</g:gtin> <g:brand><![CDATA[brand]]></g:brand> <g:mpn><![CDATA[9997]]></g:mpn> <g:age_group><![CDATA[kids]]></g:age_group> <g:item_group_id>100</g:item_group_id> <g:color><![CDATA[blau]]></g:color> <g:shipping> <g:country>DE</g:country> <g:service>Standard</g:service> <g:price>2.9 EUR</g:price> </g:shipping> <g:shipping_weight>0.10 kg</g:shipping_weight> </item> <item> <g:id>100-98</g:id> <title><![CDATA[t-shirt]]></title> <description><![CDATA[desc]]></description> <g:gtin>0739303852701</g:gtin> <g:brand><![CDATA[brand]]></g:brand> <g:mpn><![CDATA[9998]]></g:mpn> <g:age_group><![CDATA[kids]]></g:age_group> <g:item_group_id>100</g:item_group_id> <g:color><![CDATA[rot]]></g:color> <g:shipping> <g:country>DE</g:country> <g:service>Standard</g:service> <g:price>2.9 EUR</g:price> </g:shipping> <g:shipping_weight>0.10 kg</g:shipping_weight> </item>
  7. SC is its money more than worth! You can trust me. But TB is officially not supported. This morning I was in contact with there support. Which is great btw too. But first question. "Mr. Boris are still running TB?" .... This question is related to the way how SC handles image import. You can greatly utilize SC for this, too. But I still do not know if it makes use of PS/TB imagecontroller or uses its own, which it has. Question is if you are forced to use SC's controller or if you an set it off an bipass it so you can use modules like Wepb and Kraken.io or ImageMagick. Else, I can tell you: Buy the module. It is its money really worth. Boris
  8. Ouch, is this confirmative? I am still with Mollie since it just works most of the time. I can not say about other payment integration solutions I had with PS/TB the last 10years. And I am not aware of an alternative as European at the moment so it would be nice if Datakick OnePageCheckout would work nicely with Mollie. Perhaps it does and configuration is wrong or need some tuning? PS: Is there a demo version of OPC I could install on my testserver?
  9. Danke für die Auskunft. Ich habe mir gerade den aktuellen dev git angeschaut, nach längerer Pause, und es sieht fast so aus, als ob Ihr ein ganz neues Shopsystem baut, welches auf TB (PS) basiert. Bin sehr sehr sehr gespannt und werde mir nun auch mal Niara (Theme) ansehen, da es ja das neue Standardtheme werden wird. Herzlichen Dank und kühle Tage beim Programmieren
  10. Hallo ich habe im Forum wie im Netz gesucht, aber nicht herausbekommen, ob TB 1.08 mit PHP 7.3 kompatibel ist. Wer weiß was? Markus?
  11. Easy to use for all I need to do in TB is: " StoreCommander " They do not explictitly support TB at the moment but I use it since half a decade and with TB since 2 years and never had an issue. Support is fast. You find on their webpage a documentation about CSV im/export. You can buy software for a year and do not have to extend subscription. It is pretty solid and does not need constant upadates. Storecommander next to Datakick and Prestatools should speed up article maintanance enourmously.
  12. And if we opt to update to bleeding edge I noticed that after doing it so once I could not do it again. In other words it seems once you are on the 0.x train file comparisson does not work anymore. At least in my case. I went the normal way from 1.0.7 to 1.0.8 with the Thirtybees updater. Then I used the coreupdater to patch up to bleeding edge (it was git status mid January since I had issues with Warehouse and hoped that they are solved by some commits from Petr). Since then I can not get the latest patches/commits it seems.
  13. I am with the Pro version, too. It says that I have: You have latest version 2.0.4 of this module. Last check a few seconds ago I am asking wheather this is the really the latest Pro version since I have not found any auto 'login' options for customers to leave a review when they respond to the auto sent email. And moreover, I must say that I have a respond quoute from less than a 1% 😞 😞 😞 Not that my products are so bad but due to GDPR I thought that we we need a strikt consent option: Automation consent Consent type "Explicit consent is required" I do not know if we are allowed to use a less strikt consent policy on email reviews but at the moment really no one leaves a review 😞
  14. I got a customer who wanted to order via paylater/pay via invoice but canceled the checkout. In a nutshell he did not order. Then he called us and wanted me to order. No problem I say but a problem occurs: I can not Add new address for the customer no matter I do. Under customers he appeard two times. I deleted the older entry after not being able to save adress data from back office since I hoped that might help. But it did not. I use latest 'bleeding edge' and can need help since I need to make this order for the customer.
  15. I have a small change to my /js/admin.js that adds the function to mass download invoices. This is incredible helpful to me since I a have a tool running in the background of my OS that monitors my download folder for 'invoice.php'/'invoice.pdf' and send it directly to my printer and moves them then to another folder where my archive tool grabs them... If you change the file with the given lines of code you will get an additionl button in back office order at the bottom where the 'Action' button sits. $('body.adminorders .bulk-actions ul').append('<li><a href="#" id="downloadBulkSingle"><i class="icon-download"></i> Bulk InVOICE download</a></li>'); $('a#downloadBulkSingle').click(function(e){ e.preventDefault(); $('[name="orderBox[]"]:checked').each((i,e)=> $(e).parents('tr').find('a[href*="generateInvoicePDF"]').each((a,c) => c.click())); }); I inserted it into line 911.
  16. Hello I use the Warehouse theme by Iquit and I want to make use of the JASON/LD module. I set up last week GoogleTagManager and thought that it might be also a good idea to get the named module with proper markup running. So, I am looking for some detailed documentation and setup instructions of the module. What I read is that I have to make sure that my template does not use any markup code. Well, Well... First I thought, easy, just look into product.tpl and category.tpl and delete anything that looks like markup. After recognizing the markup code tag I could also make a text search through the whole template folder... Then I thought, mh, may be some modules like cross-selling could also have some markup code implemented. You dig it, I have no real clue in this case what to do. So, perhaps some one could hint me the way?
  17. There are at least two posts in the forum (technical problems is guess) that might be related to the 500er error. I use Warehouse too and ran into problems with saving 'content creator' module changes as pasting css into the theme editor form with TB1.0.8. I cloned my shop did a successfull test and repeated the same on my live shop yesterday and these two issues are gone. I did install the core updater module and updated to 'bleeding edge' version that reflects the latest GIT commits on the developing road so to speak. This I did since I believe Petr commited on Jan. 18th a fix relating to this issues. But I am just a merchant and the good ones here should give you the right hint. good luck PS: before trying what I did try to make changes in 'your' content creator module and to save them. Might be you get this 500er error and you know 😉
  18. Hi Markus, you answered my question perfectly. Id did not know exactly what 'bleeding edge' reflects concerning the git commits. I did now the 1.0.x update on my live shop (yes, I am a bit of the risky type but that is also the reason why I am here since more than a year) and the problem is mostly gone. Saying mostly since before 1.0.8 I guess I could paste my css code nicely formatted into the corresponging form of my theme editor and it was saved like that. Now, all pre-formatting /beautifying is gone after saving and css code is 'pressed' into one long line in the form. But good news is that the escapes have gone and all works. Thank you very much
  19. I think that the damn cool core updater module has a problem with a local install of Thirtybees under XAMPP Windows. Downloads calculated, 7632 files to download. (0.1 s) ERROR: Failed to download files with error: fatal: path not found: \admin1/ajax-tab.php
  20. Ok, I did a test. I cloned my live shop and used successfully the coreupdater. I went from V1.08 to "bleeding edge". I suppose that is a version that reflects latest or the latest changes marked as stable in the devs git tree. Anyhow, I am no coder and have no clue about that. Fact is, now CSS code is the named form is shown correctly and the content editor is saving as used to. Great stuff! 🙂 Having a closer look I dig that on Jan. the 8th Petr made a fix public. So, here comes the big question. What shall I do as humble merchant? Shall I manuall update all files from GIT up to Jan. the 18th or so or shall I use the coreupdater in order to update the latest changes made public on GIT or wait for 1.09? I do not want to risk raise new errors in our shop that is for sure. Thank you
  21. Custom CSS form in Warehouse template convuluted since TB V1.08 Hello this is really nasty. Since TB1.08 I would say since I do not know for certain my form that supports to save custom CSS code for the IQUIT Warehouse theme is convuluted. Escapes and so on mess all up. That needs an urgend fix since I can not work so 😕 Example: .columns-container {\r\n min-height: 600px;\r\n }\r\n /* check if good for mobil devices. made in order to not shrink content on some pages. Boris 02.2019#revws-home .btn-primary {background-color: #83C11F}/*startseiten 50% col banner*/\r\n \r\n #iqitcontentcreator .fullheight-banner {\r\n padding-right: 0px !important;\r\n }\r\n /*#order Moreover, the content creator module gives now an 500er error. Well, since the template isn't really developed anymore and worked for years this incompatibility must habe been created by Thirtybees I supppose. Anyhow, since I am not the only one with Warehouse here I hope a solution is ready?
  22. Just asking into the blue: Did you change your statuses? Don't laugh but if there is no status set that tells the db that an order was sold than...
  23. Just curious, what is the branch you are in? Please do not laugh, but if you are in a branch that heavily profits from Christmas business/sales then there you go. For me, it looks pretty much like that
  24. As already said at the moment for the last 3 weeks paylater functionality was stalled (Mollie said officially they dropped support). All other payment option are said to have received their latest 'internal updates' 3 weeks ago and no one know when they might stop working. In a nutshell, at the moment all know problems are related to the webhook 'conversation' between Mollie <--> Thirtybees exclusively for the payment option paylater/Klarna. This worked for me today as stated. So, I am interested if anyone has received paylater orders in his shop the lasts days since I have not for 3 weeks except my own order (before we had daily sells via paylater). Thank you
  25. Hello Petr, coming back to this. I reactivated Klarna paylater in live shop and did a test order. It went positively through after I created a customer with my original adress and entered my mobil phone number and birth date during checkout test (Klarna scoring test). With eyebrowses raised I had to notice that my order was accepted by Klarna and I had successfully bought on invoice/paylater and this was registered in my backoffice. In the log appears as it does in test mode: MollieWebhookModuleFrontController::processTransaction said: Received webhook request for order 1234/ transaction ord_1234 0 0x 0 08.02.2019 So, either Molly lowered their constraints on the PS/TB test or I was just lucky or what ever... I am happy since it might be something good and may be we can use Mollie in the future! Hower, before the problems started we had orders via pay later on a daily basis. My test order is now the first one for 3 weeks! What are the others experiencing here? Are you still with Mollie or any alternatives? Still receiving or freshly receiving Mollie / Klarna paylater orders?
×
×
  • Create New...