Additional pictures of the product in the category

Phoca Cart - complex e-commerce extension
Kamikadze
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 05 May 2018, 04:18

Additional pictures of the product in the category

Post by Kamikadze »

Hello! Sorry for my english. Translating by translator
Thank you for the component!
I have been suffering for 3 days. Well, I can print additional pictures of the product in the category.
Like that:
https://hkar.ru/TXMe

Found the code:

Code: Select all

foreach ($this->t['add_images'] as $v2) {
			echo '<div class="col-xs-12 col-sm-4 col-md-4 ph-item-image-box">';
			$image 	= PhocacartImage::getThumbnailName($this->t['pathitem'], $v2->image, 'small');
			$imageL = PhocacartImage::getThumbnailName($this->t['pathitem'], $v2->image, 'large');
			$link 	= JURI::base(true).'/'.$imageL->rel;
			echo '<a href="'.$link.'" '.$this->t['image_rel'].'  class="'.$this->t['image_class'].'">';
			echo '<img src="'.JURI::base(true).'/'.$image->rel.'" alt="" class="img-responsive img-thumbnail ph-image-full" />';
			echo '</a>';
			echo '</div>';
		}
But it does not work

I wanted to ask more advice. Your component is running on bootstrap 3. I'm doing the site on bootstrap 4. I want to adapt the templates of your component to the bootstrap 4. Do I have to do this? Or will it soon be a new version of the component with bootstrap 4 already?

Thank you for attention
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Additional pictures of the product in the category

Post by Jan »

Hi, yes it is planned to run Phoca Cart with Bootstrap 4, but for now we still "limited" by Joomla! output which is in 2.3

So for now there are "bridges" between 2.3 (Joomla!) and 3 (Phoca Cart) so having "bridge" between 2.3 and 4 could be a problem.

So Bootstrap 4 will be certainly added when Joomla! 4 will be ready. If this will be sooner, hard to say as for now I don't know all the differencies.


Images:
In category/items view only two images are loaded (first the main, and second in case the image will have slide effect). Not all images are loaded there as default, so first such need to be loaded then they can be added to html output code. :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply