notbigmuzzy / splitslider

Simple jQuery slider which can be useful if you want to split slides and animate them individually
GNU General Public License v3.0
2 stars 0 forks source link

Split Carousel php loop #1

Open BlubberBlaster opened 3 years ago

BlubberBlaster commented 3 years ago

Hello Ivan Jovanovic, I do like your script and it is working fine. But how can it be integrated in a php loop?

Could this be a solution (I know it is extremely wrong):

.SlideOne is an extra definition for getting className
$maxDisplay is the amount of all slides

ExecuteRandomMulti(sprintf(SQL_ALSO_PURCHASED,(int)$_GET['products_id'],(int)$_GET['products_id']),MAX_DISPLAY_ALSO_PURCHASED); $num_products_ordered = $also_purchased_products->RecordCount(); $also_purchased_products->RecordCount(); $maxDisplay = MAX_DISPLAY_ALSO_PURCHASED -1; while (!$also_purchased_products->EOF) { ?>

fields['products_id']); ?>

fields['products_id']); ?>

Jvascript function start $maxDisplay;
Jvascript function end Thanks for your Patient and answering.
notbigmuzzy commented 3 years ago

Hi,

I'm not sure I understand the question completely. In general, you would need to generate html before initializing the function. You can generate any structure you like except the basic structure for the slider to properly function.

Mockup code, for example, would be something like:

###PHP
<slider>
    ITEMS.EACH {
        <span>ITEM.TITLE</span>
        <span>ITEM.DESCRIPTION</span>    
        <span>ITEM.PRICE</span>
    }
</slider>

###JS
SLIDER.splitslider()

Hope this helps, Ivan

BlubberBlaster commented 3 years ago

Thanks for taking time for answering. Hope you are all healthy. Okay, my Problem are nested loops for Zen Cart and i can not figure it out (still working on it [over one week]). calling your fantastic script tpl_modules_also_purchased_products.zip main php.script also_purchased_products.zip

ITEMS.EACH { ITEM.TITLE ITEM.DESCRIPTION
ITEM.PRICE }
has to be nested loops and has to be handled by php or javascript

screenshot.zip

Thanks in advance

Do apologize bothering you

notbigmuzzy commented 3 years ago

No problem :)

Can you please send me generated html of this page?

BlubberBlaster commented 3 years ago

Thanks, I am gonna be happy. I have uploded changed files to Seitzengarte.de here is die hard with one bougth together. Looks pretty cool.

In admin Dont mind, this page will be remove shortly. This Demo is obsolete!

Insert Peter and notbigmuzzy3 und go to Konfiguration/Artikeldetails/Anzahl empfohlener Artikel pro Zeile (Last One).

If you choose more than one item, everything is screwed up.

It is just a question, can we work to gether and make Zen Cart even more better. Since Corona started I am working on this Shop.

Some kind of Premium Edition. If you agree, I dont mind sharing my files.

Greetings Toni

notbigmuzzy commented 3 years ago

I checked the example page : http://seitzengarten.de/dvd-action-c-3_10/die-hard-with-a-vengeance-linked-p-12.html

And the split slider below " Kunden die diesen Artikel gekauft haben, haben auch diese Artikel gekauft... " only has one item rendered! It's a bit wonky because of this ( something I need to improve for sure ). Can you put more items in that slider and send me the link?

BlubberBlaster commented 3 years ago

Hi Ivan (smile), you can do it on your own. Click on admin ( it is hard to see, but it is a link). Insert Peter and notbigmuzzy3 und go to Konfiguration/Artikeldetails/Anzahl empfohlener Artikel pro Zeile (Last One). And you can do what ever you like, when you like. Greetings Toni

notbigmuzzy commented 3 years ago

Yeah, I did that :)

So, loged-in to Admin, set 3 to Artikelbeschreibung: Anzahl empfohlener Artikel pro Zeile - the last one

Still I see only one item.

Maybe I'm missing something?

BlubberBlaster commented 3 years ago

Oups, sorry for that. Well, i have to buy more items. There is only one listed (Demo Site). Do you mind, I will do it tomorrow. Source from local (with 3 items) top right bottom left.zip

Die Hard With A Vengeance Linked [DVD-DHWV] - €43.99 _ Responsive Sheffield Blue Zen Cart Template, multilingual Version.html.zip

I am really sorry. Did it to quick. Hope this helps. Greetings from Bavaria