Change Product Preview ?

  • Posts: 63
  • Thank you received: 1
12 years 1 week ago #76312

Hello everyone
I'm trying to change the view of presenting a product, for example:
I want the product will be displayed before entering it only with a headline, picture, and description, without the price and item code etc..
I of course Vanish general settings and there are several options but none of them corresponds to what I mentioned above. In addition to that I choose something from the drop down general settings and change it and keeps nothing changes ...
What am I missing? How do I make what i described above?

link wwww.marry-me-love.com/noni

Thanks to all...

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 1 week ago #76430

Hi,

To change the product display, you can edit the view "product / show_default" and move the divs as you want to change the display of the product page.

One reason why the previous changes were not displayed could be a cache issue. Try to clear the cache, or do a Ctrl + F5

Please Log in or Create an account to join the conversation.

  • Posts: 63
  • Thank you received: 1
12 years 1 week ago #76483

i tried to clean cache but steel not changing...
what could it be?

Please Log in or Create an account to join the conversation.

  • Posts: 63
  • Thank you received: 1
12 years 1 week ago #76504

any idea? i use ctrl+f5 But still the product privew not changing

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
12 years 1 week ago #76560

Hi,

If you edit a view and you do not see any modification, just check that you're editing the view for the right template.
I made this mistake a lot of time !

If you want to be sure that you're editing the right view (file), just put a

<?php die('ok'); ?>
at the beginning of the view. If you got a blank page with "ok", it's good.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 63
  • Thank you received: 1
12 years 1 week ago #76574

hii thank u for your time...
I am thinking we miss each other.
I'm trying to change the display settings through the preliminary product overall management system, there is the possibility of choosing such a picture and description, just viewing an image, an image and a title, etc ... So I want to just change out and choose option saves and it's just a variable. I want to display the product preview when you see a picture and description product theory.
Crouched there is no connection to the php file editing
Hope you understand me?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 1 week ago #76699

Hi,

You are talking about the products listing.
To change the style of display, you have to edit your content menu or content module in HikaShop > Display > Content menus / modules.

Hope I understood you, and this will help you.

Please Log in or Create an account to join the conversation.

  • Posts: 63
  • Thank you received: 1
12 years 1 week ago #76782

hii i add a picture of what i am talking about ...
i need to display the divs of the introduction product just with picture title and short description....

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 1 week ago #76888

Hi,

You have to set the view configuration to "div" and "image and description" in your content menu/module edition view.
Then edit the view "product / listing_img_desc" and add code like: "echo $this->row->product_name;"

Please Log in or Create an account to join the conversation.

  • Posts: 63
  • Thank you received: 1
12 years 1 week ago #76897

i dont know were po put the code in the file...
and i changed in the configuration to div and to pic+description but again it showing the code and the price ...
whitaout php coding it is not posibole?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 1 week ago #76902

No it require just some modifications in the file.

To hide the code and the price, remove the blocks:

				<!-- PRODUCT PRICE -->
				<?php
				}
				if($this->params->get('show_price','-1')=='-1'){
					$config =& hikashop_config();
					$this->params->set('show_price',$config->get('show_price'));
				}
				if($this->params->get('show_price')){
					$this->setLayout('listing_price');
					echo $this->loadTemplate();
				}
				?>
				<!-- EO PRODUCT PRICE -->
And
				<!-- PRODUCT CODE -->
					<span class='hikashop_product_code_list'>
						<?php if ($this->config->get('show_code')) { ?>
							<a href="<?php echo $link;?>">
							<?php
							echo $this->row->product_code;
							?>
							</a>
						<?php } ?>
					</span>
				<!-- EO PRODUCT CODE -->

The blocks are indicated by tags, you just have to move or remove these blocks to have what you need.

Please Log in or Create an account to join the conversation.

  • Posts: 63
  • Thank you received: 1
12 years 1 week ago #76921

ok i understand now...
last thing , how can i take just 5 6 word from the discription... ? it takes all the discription

thanks for your time!! :-)

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 1 week ago #76928

There is a php function for that, substr(), you can find some documentation on the php.net website:
php.net/substr

Please Log in or Create an account to join the conversation.

  • Posts: 63
  • Thank you received: 1
12 years 1 week ago #77045

try to undertand it but i don't know php so cant do it.. but thank u

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 1 week ago #77050

Try to replace the line "echo $this->row->product_description;" by:

echo substr($this->row->product_description,0,20);

Last edit: 12 years 1 week ago by Xavier.

Please Log in or Create an account to join the conversation.

  • Posts: 63
  • Thank you received: 1
12 years 1 week ago #77128

im sorry but

i have puted this code :


<!-- PRODUCT DESCRIPTION -->

<div class="hikashop_product_desc" style="text-align:<?php echo $this->align; ?>">

<?php

echo substr ($this->row->product_description,0,20);

?>

</div>

<!-- EO PRODUCT DESCRIPTION -->

but this what i got in the pic that added

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
12 years 1 week ago #77175

Hi,

I tried to access to your website in order to see your problem but I can't see your modification.
Did you removed the modification ?
(Your domain with "www" does not exists but marry-me-love.com does, You may need to create a DNS entry for "www")

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 63
  • Thank you received: 1
12 years 6 days ago #77237

Hi

for some reason the file which is also estimated when editing the file is:
listing_img_title.php
I added the code I sent the previous post after the image area.
And now there's a bug in the display ..and one from tow product do not get the shor discription.
And seems only one product get short description ...

marry-me-love.com/noni

and i can open a user account login for you if you want for the specific folder? and send you the login detailes on privete?

thank u !!! :-)

Please Log in or Create an account to join the conversation.

  • Posts: 63
  • Thank you received: 1
12 years 6 days ago #77261

help?... :dry:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
12 years 6 days ago #77267

Hi,

Your page have some broken HTML, that's why the layout is strange.
When you display the 20 first characters of the description, you have to keep in mind that the description could contains HTML.

<!-- PRODUCT DESCRIPTION -->

<div class="hikashop_product_desc" style="text-align:center">

<p style="text-align
</div>

<!-- EO PRODUCT DESCRIPTION -->

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.112 seconds
Powered by Kunena Forum