

zimmer-media
Trusted Members-
Posts
486 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Gallery
Downloads
Articles
Store
Blogs
Everything posted by zimmer-media
-
If you want a category short description above product list and category long description under product list. Example: step 1 - database add to "prefixcategorylang" catshortdescription - varchar(180) - utf8mb4unicodeci - yes - NULL after step 2.1 modify the file “Category.php” from “/classes/Category.php”, preferably in the folder classes Override “/override/classes/Category.php” save find the line /** @var string Description */ public $description; add this /** @var string Short Description */ public $cat_short_description; step 2.2 find the line 'description' => ['type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml'], add this 'cat_short_description' => ['type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml'], step 3 change or copy your AdminCategoriesController.php from controllers / admin / to under override / controllers / admin / AdminCategoriesController.php for example and find the code (depending on where this additional field should appear.) find the lines 'type' => 'categories', 'label' => $this->l('Parent category'), 'name' => 'id_parent', 'tree' => [ 'id' => 'categories-tree', 'selected_categories' => $selectedCategories, 'disabled_categories' => (!Tools::isSubmit('add'.$this->table) && !Tools::isSubmit('submitAdd'.$this->table)) ? [$this->_category->id] : null, 'root_category' => $context->shop->getCategory(), ], ], an add [ 'type' => 'textarea', 'label' => $this->l('Short Description'), 'name' => 'cat_short_description', 'autoload_rte' => true, 'lang' => true, 'hint' => $this->l('Invalid characters:').' <>;=#{}', ], step 4 if you want to see this field in your frontoffice categorys view - in your theme category.tpl add and change codes add this under your tag ``` {$category->cat_short_description} at last move or change the full description under the pagination eg {if ($description)} {$category->description} {/if} ```
-
-
hi @SLiCK_303
-
@datakick Thank you for your answer. And I hope you do not misunderstand it. With my request I wanted to contribute to the optimization of the general public. I may not be up to date right now, but my online tools should be. So when I look at the results after testing I wanted to ask if it is possible to change this in the module in general. I had hoped that, for example, there is a possibility in the specifications or by the settings in the module to integrate it directly by css or adapt. For example - if star size 10 then css class revwspaddi10 - if star size 12 then css class revwspaddi12 etc I'm glad it's on your ToDo list. Despite the meanwhile high speed of the internet, the data size of the web pages is included in the calculation. Google, for example, the less amount of data a page the better -> more and more on the mobile devices such as mobile phones and tablets. It's getting harder and harder to keep up with online shops than with a blog website. In terms of page load times etc, this has a total impact. This really great module is not the only thing that appears when looking for a page through customers and search engines. I am not an SEO expert and not a big programmer. Nevertheless, I add another argument: more program code (including inline style) the more I have to add as text on the page. The relationship between code and content is still up to date. This further increases the size of the page (eg in kb), which in turn means that it is rated negative. for example on firefox - with one of my shops without style changes for every star -> inline style => 5 stars -> 5 inline styles -> 40 products with rating 200 inline styles only for the size/star - and plus stroke style
-
@wakabayashi my translation image admin module
-
@wakabayashi to my last chat comment - translation and or text change
-
I try to describe it a little differently. I discovered the problem with my shops. Some users do not know that. Despite the great module, you will be devalued by these many additional inline styles by Google. Hence my question, whether it is possible to adapt this generally in the code, so that the shop system is thereby not adversely affected. It is always recommended to outsource the style elements in the css and not the tpl's. This can also lead to longer page load times.
-
the problem is i have to think about updates every time after updates to enter the css-class in the tpl's - and i have to do that with me in all shops where i installed the module
-
i dont know why it so heavy with styles before after for example i changed views / templates / hook / grading.tpl to and add to modules / revws / views / css / front.css .revwspaddi { padding-left:2px; padding-right:2px }
-
@datakick thanks for the great module but i have a question about styling and seo - i have now tooo many style-attributes - for example i have product list with 40 products = additional 40 style-attributes - i think it isnt google-like from views / templates / hook / grading.tpl is it possible to change it generally -> or only manual after new update for example different classes in modul css
-
@wakabayashi i changed your great module for test on another template - i add the hook "displayProductButtons" - in module positions i removed the module manualy from the hook displayRightColumnProduct i dont know if its help you very great job - its absolute fantastic on your genzo_krona.php first i add !$this->registerHook('displayProductButtons') OR !$this->registerHook('displayRightColumnProduct') OR !$this->registerHook('displayProductButtons') OR !$this->registerHook('displayKronaCustomer') OR at second i add ``` public function hookDisplayProductButtons ($params) { if (Configuration::get('krona_loyalty_product_page')) { $this->context->controller->addJS($this->_path.'/views/js/krona-loyalty.js'); $id_currency = $this->context->currency->id; $id_ActionOrder = ActionOrder::getIdActionOrderByCurrency($id_currency); $actionOrder = new ActionOrder($id_ActionOrder); $order_amount = Configuration::get('krona_order_amount', null, $this->context->shop->id_shop_group, $this->context->shop->id_shop); if ($order_amount == 'total_wt') { $coins_in_cart = $this->context->cart->getSummaryDetails()['total_price']; $tax = true; } elseif ($order_amount == 'total') { $coins_in_cart = $this->context->cart->getSummaryDetails()['total_price_without_tax']; $tax = false; } elseif ($order_amount == 'total_products_wt') { $coins_in_cart = $this->context->cart->getSummaryDetails()['total_products_wt']; $tax = true; } elseif ($order_amount == 'total_products') { $coins_in_cart = $this->context->cart->getSummaryDetails()['total_products']; $tax = false; } else { $coins_in_cart = 0; $tax = true; } ($tax) ? $tax_rate = 1 : $tax_rate = 1 + ($params['product']->tax_rate / 100); Media::addJsDef(array( 'krona_coins_change' => $actionOrder->coins_change, 'krona_coins_conversion' => $actionOrder->coins_conversion, 'krona_coins_in_cart' => $coins_in_cart * $actionOrder->coins_change, 'krona_order_rounding' => Configuration::get('krona_order_rounding', null, $this->id_shop_group, $this->id_shop), 'krona_tax' => $tax, 'krona_tax_rate' => $tax_rate, )); $this->context->smarty->assign(array( 'game_name' => Configuration::get('krona_game_name', $this->context->language->id, $this->id_shop_group, $this->id_shop), 'loyalty_name' => Configuration::get('krona_loyalty_name', $this->context->language->id, $this->id_shop_group, $this->id_shop), 'krona_coins_in_cart' => $coins_in_cart * $actionOrder->coins_change, )); return $this->display(__FILE__, 'views/templates/hook/ProductButtons.tpl'); } } ``` third i copy "rightColumnProduct.tpl" the new file "ProductButtons.tpl"
-
seo optimized category/supllier/manufacturer description in TB?
zimmer-media replied to Pedalman's topic in English
manufacturer description with "read more about this manufacturer" change the manufacturer.tpl file in the standard template from original tpl to ``` {include file="$tpl_dir./errors.tpl"} {if empty($errors)} {$manufacturer->name|escape:'html':'UTF-8'} {if ($manufacturer->short_description)} {$manufacturer->short_description} {l s='read more about this manufacturer'} {/if} {if !empty($products)} {l s='List of products by manufacturer'} {$manufacturer->name|escape:'html':'UTF-8'} <div class="content_sortPagiBar clearfix"> <div class="form-inline sortPagiBar clearfix"> {include file="./product-sort.tpl"} {include file="./nbr-product-page.tpl"} </div> <div class="top-pagination-content form-inline clearfix"> {include file="./product-compare.tpl"} {include file="$tpl_dir./pagination.tpl" no_follow=1} </div> </div> {include file="./product-list.tpl" products=$products} <div class="content_sortPagiBar"> <div class="bottom-pagination-content form-inline clearfix"> {include file="./product-compare.tpl"} {include file="./pagination.tpl" paginationId='bottom'} </div> </div> </section> {if ($manufacturer->description)} <div class="rte" id="more">{$manufacturer->description}</div> {/if} {else} {l s='No products for this manufacturer.'} {/if} {/if} ``` the line {l s='read more about this manufacturer'} you can insert/create special class with eg {l s='read more about this manufacturer'} but you need change your css with a class-code (color, fontweight, etc) edit: you can also instead of class = "more" for more enter an existing class -
seo optimized category/supllier/manufacturer description in TB?
zimmer-media replied to Pedalman's topic in English
@mockob no no no no - not a new block :D simply move description in exists tpl-files no, these are just examples to move the full description of a category or manufacturer page under the products in the list in the standard template (if appropriate in any normal template similar). Instead of seeing the description above the products in the respective list. Personally, I hate it when I want to buy something in another store and I have to first see a long category description above the products in eg one category, before I see the products. Here only the text blocks are moved below the product list. Now I have almost duplicate content in my text. :D :D :D -
seo optimized category/supllier/manufacturer description in TB?
zimmer-media replied to Pedalman's topic in English
@mockob Which duplicate content? I just do not understand what you mean. Only the text blocks of the description will be moved and will not appear twice on a page. The description of the texts in the categories, manufacturer side etc is the responsibility of the shop operator. -
@slick303 now installed - so great work guys - its absolute very great - hats off :bomb: :sunny: :horseracing:
-
seo optimized category/supllier/manufacturer description in TB?
zimmer-media replied to Pedalman's topic in English
@pedalman catecory -description change the category.tpl file in the standard template find {if !empty($category->description)} <div id="category-description" class="rte">{$category->description}</div> {/if} and move it eg under the pagination example <div class="content_sortPagiBar"> <div class="bottom-pagination-content form-inline clearfix"> {include file="./product-compare.tpl" paginationId='bottom'} {include file="./pagination.tpl" paginationId='bottom'} </div> </div> </section> {/if} {if !empty($category->description)} <div id="category-description" class="rte">{$category->description}</div> {/if} result Depending on how I have some time in the next few days, I create in the category "Tips & Tricks" a separate guide with additional short description above and full description below. manufacurer description change the manufacturer.tpl file in the standard template from ``` {include file="$tpl_dir./errors.tpl"} {if empty($errors)} {$manufacturer->name|escape:'html':'UTF-8'} {if !empty($manufacturer->description)} {$manufacturer->description} {elseif !empty($manufacturer->short_description)} {$manufacturer->short_description} {/if} {if !empty($products)} {l s='List of products by manufacturer'} {$manufacturer->name|escape:'html':'UTF-8'} <div class="content_sortPagiBar clearfix"> <div class="form-inline sortPagiBar clearfix"> {include file="./product-sort.tpl"} {include file="./nbr-product-page.tpl"} </div> <div class="top-pagination-content form-inline clearfix"> {include file="./product-compare.tpl"} {include file="$tpl_dir./pagination.tpl" no_follow=1} </div> </div> {include file="./product-list.tpl" products=$products} <div class="content_sortPagiBar"> <div class="bottom-pagination-content form-inline clearfix"> {include file="./product-compare.tpl"} {include file="./pagination.tpl" paginationId='bottom'} </div> </div> </section> {else} {l s='No products for this manufacturer.'} {/if} {/if} to {include file="$tpl_dir./errors.tpl"} {if empty($errors)} {$manufacturer->name|escape:'html':'UTF-8'} {if ($manufacturer->short_description)} {$manufacturer->short_description} {/if} {if !empty($products)} {l s='List of products by manufacturer'} {$manufacturer->name|escape:'html':'UTF-8'} <div class="content_sortPagiBar clearfix"> <div class="form-inline sortPagiBar clearfix"> {include file="./product-sort.tpl"} {include file="./nbr-product-page.tpl"} </div> <div class="top-pagination-content form-inline clearfix"> {include file="./product-compare.tpl"} {include file="$tpl_dir./pagination.tpl" no_follow=1} </div> </div> {include file="./product-list.tpl" products=$products} <div class="content_sortPagiBar"> <div class="bottom-pagination-content form-inline clearfix"> {include file="./product-compare.tpl"} {include file="./pagination.tpl" paginationId='bottom'} </div> </div> </section> {if ($manufacturer->description)} <div class="rte">{$manufacturer->description}</div> {/if} {else} {l s='No products for this manufacturer.'} {/if} {/if} ``` example -
@slick_303 Thanks for the reminder. I have just installed the latest version for testing now. Yes in the last few days it has changed positively. It's really cool. I can not wait to see the result when the revws module is integrated. very very good thanks @wakabayashi
-
seo optimized category/supllier/manufacturer description in TB?
zimmer-media replied to Pedalman's topic in English
Yes, there are ways to set it up manually. Personally, I do not believe it will be integrated as a core code, because this is related to the theme of the shop to output the text. In the default template, you can customize the short description and description of manufacturer.tpl and supplier.tpl. So that you move the code for the full description eg under the pagination. There is no short description in the category.tpl. For this, the database, the category editing in the admin area and in the category.tpl would have to be adjusted. For example, I moved the full description in the template directly below the pagination. Personally, I find it personally awful when there is a novel above the products and you have to scroll down to see the products. -
Is there already a solution for this? Adding new cron jobs or changing existing cron jobs is only possible with my shops via manual database entry.
-
thanks slick - this modul its absolutly great and very nice. Unfortunately I can not keep up with the programming. Since few months, I do not have the time. Is it possible in your cool module to integrate a backround option or so, eg only to send every 365 days per email address?
-
I am thrilled and so far it works very well. At the moment, I keep in mind that customers can always change their date of birth to get a voucher. Are there any restrictions?
-
@wakabayashi very great job - it looks very good, i have a little bit tested. i dont know if its on your todo list - for example: the next release -> can you add code to some front tpl files i think because of the better overview in comparison to the other modules in the customer account. so that it looks like the other standard modules. ``` ← {l s='Back to your account' mod='genzo_krona'} ```
-
this test with tb 1.0.3 new installed, no migration and paypal 5.3.2
-
@lesley sorry my mistake -> i forgot to reactivate paypal-plus i have now this error
-
@lesley thank you. I changed the line. Now I get the same error message again.