Jump to content

make new moudle for homefeatured


Recommended Posts

Because I want to learn

 

1- CHANGE name folder

    homefeatured  to homefeatured(x) ...................X= 1-9 OR A-Z

 

2-open homefeatured folder and

   CHANGE homefeatured.php   TO       homefeatured(X).php

 

3- OPEN homefeatured.php

   find

class HomeFeatured1 extends Module

change to

class HomeFeatured(X) extends Module

AND FIND

public function __construct()
	{
		$this->name = 'homefeatured';
		$this->tab = 'front_office_features';
		$this->version = '1.8.0';
		$this->author = 'PrestaShop';
		$this->need_instance = 0;

CHANGE TO

public function __construct()
	{
		$this->name = 'homefeatured(X)';
		$this->tab = 'front_office_features';
		$this->version = '1.8.0';
		$this->author = 'PrestaShop';
		$this->need_instance = 0;

AND FIND

$this->displayName = $this->l('Featured products on the homepage');

AND CHANGE TO

$this->displayName = $this->l('Featured products on the homepage (X)');

AND SAVE

 

BUT NOT WORKING AND INSTALL

Link to comment
Share on other sites

Because I want to learn

 

1- CHANGE name folder

    homefeatured  to homefeatured(x) ...................X= 1-9 OR A-Z

 

2-open homefeatured folder and

   CHANGE homefeatured.php   TO       homefeatured(X).php

 

3- OPEN homefeatured.php

   find

class HomeFeatured1 extends Module

change to

class HomeFeatured(X) extends Module

AND FIND

public function __construct()
	{
		$this->name = 'homefeatured';
		$this->tab = 'front_office_features';
		$this->version = '1.8.0';
		$this->author = 'PrestaShop';
		$this->need_instance = 0;

CHANGE TO

public function __construct()
	{
		$this->name = 'homefeatured(X)';
		$this->tab = 'front_office_features';
		$this->version = '1.8.0';
		$this->author = 'PrestaShop';
		$this->need_instance = 0;

AND FIND

$this->displayName = $this->l('Featured products on the homepage');

AND CHANGE TO

$this->displayName = $this->l('Featured products on the homepage (X)');

AND SAVE

 

BUT NOT WORKING AND INSTALL

You need change 3 variants: 

HOME_FEATURED_NBR

HOME_FEATURED_CAT

HOME_FEATURED_RANDOMIZE

you may change to HOME_FEATURED_RANDOMIZE1

But you need replace all.

 

Hope i can help you.

Link to comment
Share on other sites

i change this code but no instal

i channg all world match belew
HOME_FEATURED_NBR

HOME_FEATURED_CAT

HOME_FEATURED_RANDOMIZE

Configuration::updateValue('HOME_FEATURED_NBR1', 8);
Configuration::updateValue('HOME_FEATURED_CAT1', (int)Context::getContext()->shop->getCategory());
Configuration::updateValue('HOME_FEATURED_RANDOMIZE1', false);

Edited by امیر (see edit history)
Link to comment
Share on other sites

امیر حسین ما اینجا هم از دست تو اسایش نداریم
شوخی کردم

و اینجا دو تا ایرانی که واقعا دلشون بسوزه و بخوان اطلاعاتشون رو به اشتراک بزارن به من نشون بده :D :D :D :D

Link to comment
Share on other sites

زیادن.

سوالت رو یه بار فارسی بپرس اوناجایی که تو ترجمه گیر کردی من نتونستم بفهمم منظورت چیه. فکر میکنم این دوستان هم که جواب نمیدن به خاطر همینه. 

به گوگل ترنسلیت اعتماد نکن. تب رو ترجمه کرده برات 

fever

این تب معنیش تبیه که موقع مریضی میاد سراغت. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...