-
Posts
87 -
Joined
-
Last visited
Profile Information
-
Location
Cyprus
-
First Name
Georgios
-
Last Name
Panayi
Recent Profile Visitors
707 profile views
giwrgos88's Achievements
-
true, i think is the best option. do we know exactly where this module it is used in the admin panel? which parts affect, if it affects
-
there website is down, how i will load them or visit their page to get them? if anyone has them please share it with me and i will create a new topic how to fix the issue
-
do you have them local to share it with us?
-
Overload the helper form.tpl file from an admin module ?
giwrgos88 replied to Tak's topic in Core developers
what was the right place? can you share your solution? -
Add extra attribute to the product instance using module 1.7
giwrgos88 replied to giwrgos88's topic in Core developers
I found out how to override the product class but the issue is that the attribute always has the value 1 even if i add false or a date as a value. any ides? here is my code https://pastebin.com/nesKN8iW does anyone know what i'm doing wrong? basically I want to make a module where the admin can set a date to a product if it is preorder and I want each product to have this extra attribute, in the checkout process for example, on single page or on the home page where you display the products. Note: I don't want to store this attribute inside the product table- 7 replies
-
- custom attribute
- module
-
(and 1 more)
Tagged with:
-
Add extra attribute to the product instance using module 1.7
giwrgos88 replied to giwrgos88's topic in Core developers
Hello @hhennes @jgamio it looks like on prestashop 1.7 is not working. any other suggestions?- 7 replies
-
- custom attribute
- module
-
(and 1 more)
Tagged with:
-
Add extra attribute to the product instance using module 1.7
giwrgos88 replied to giwrgos88's topic in Core developers
I don't want to add extra fields, I just want to extend the existing Product class with my module and add an extra attribute called preorder(boolean)- 7 replies
-
- custom attribute
- module
-
(and 1 more)
Tagged with:
-
Hello, I'm working on a module and I want to extend the product class in order to add an extra attribute to the class. I want this attribute to be available on product list page, category page, product page etc. Basically I want to add a boolean attribute if the product is preorder or not Does anyone knows how i can do it? PRestashop 1.7 and 1.6
- 7 replies
-
- custom attribute
- module
-
(and 1 more)
Tagged with:
-
Doesn't display content on displayRightColumnProduct
giwrgos88 replied to giwrgos88's topic in Core developers
@tdsoft As I said I want to display it in the single product page, not on the category page that's why I'm using the displayRightColumnProduct. As for the $product = new Product((int) Tools::getValue('id_product')) you are right but event if you do var_dump or just return the tpl file with static text it doesn't display it. -
Hello, I'm working on a module for prestashop 1.7 and 1.6 (I'm testing it on 1.7) and I want to display some information on the single page of a product and for that reason I used the displayRightColumnProduct hook. The issue is that I cannot see the content that I'm printing from displayRightColumnProduct but If i go to Design -> Positions I can see my module on the right column product section. Here is my code <?php if (!defined('_PS_VERSION_')) { exit; } class Rating extends Module { public function __construct() { $this->name = 'rating'; $this->tab = 'front_office_features'; $this->version = '0.0.0'; $this->author = 'George Panayi'; $this->ps_versions_compliancy = ['min' => '1.6', 'max' => _PS_VERSION_]; $this->bootstrap = true; $this->controllers = []; parent::__construct(); $this->displayName = $this->l('Rating'); $this->description = $this->l('Test module'); $this->confirmUninstall = $this->l('Are you sure you want to uninstall?'); $this->page = basename(__FILE__, '.php'); } public function install() { if (!parent::install() || !$this->registerHook('displayRightColumnProduct') ) { return false; } return true; } public function uninstall() { if (!parent::uninstall() ) { return false; } return true; } public function hookdisplayRightColumnProduct($params) { return $this->display(__FILE__, 'rating.tpl'); } } Here is my rating.tpl (mymodulename/views/templates/hook/rating.tpl) This is a test Do you know what I'm doing wrong?
-
Hello, I'm writing a module that it will add an extra tab on the edit product page (back office). I did a small research and I saw many people that they are suggesting the following methos Tools::getAdminTokenLite('AdminModules') $token = Tools::getAdminToken($tab.(int)(Tab::getIdFromClassName($tab)).(int)($cookie->id_employee)); 'token' => Tools::getToken(false) I did several combinations, like changing tabs, module names etc, but non of them returned the same token that exist on the URL. Does anyone know what method to use in order to get the same token on my tbl with the one on the URL? Also how I can build a friendly url on the smarty? Now it is index.php?controller=AdminProducts&token={$token|escape:'html':'UTF-8'}" And i need something like this index.php/product/catalog?_token= Thanks
-
Εμφάνιση whosale price (Προ φόρων τιμή χονδρικής) prestashop 1.6
giwrgos88 replied to cs4u's topic in Ελληνικά [Greek]
milas gia tin selida p vlepi o pelatis? nai mporis, sto product.tpl to variable $product periexi nomizo to whosale price. mporis fisika na kanis ena var_dump gia na dis ti values periexi to $product -
I lisi einai apli. Sindiase recaptcha kai csrf token kai to provlima tha lithi
- 11 replies
-
- newsletters
- recaptcha
-
(and 1 more)
Tagged with:
-
Apla pigene sto "my account" tu pelati su/logariasmou su sto front end kai eki tha dis tin epilogi gia ta loyalty