If this is your first visit, check our documentation. To post, register or login.

360 view addon

Started by iatia on 8 Feb 2019, 4:13 PM · Views: 2,382

Results 1 to 15 of 15
8 Feb 2019, 4:13 PM
#1
iatia avatar

iatia

Zen Follower

Join Date:
Nov 2009
Location:
Aransas Pass, TX
Posts:
102
Plugin Contributions:
1

360 view addon

I got my 360 view refined and 'zenned'.

I have submitted it for approval.

If you just add it to your store and select YOUR_360_TEMPLATE then add the included sample to your product catalog, it will run as is on a barebones template. As with all, just rename YOUR_360_TEMPLATE to your custom template if you decide that you would like to use it in your store.

Hope someone enjoys!

21 Feb 2019, 12:48 AM
#2
iatia avatar

iatia

Zen Follower

Join Date:
Nov 2009
Location:
Aransas Pass, TX
Posts:
102
Plugin Contributions:
1

Re: 360 view addon

I have updated the plug-in for responsive image sizing or user custom size. It defaults to responsive. The ver 1.0 shows as "file not found", but ver 1.1 is the one you want. I have also included a mod for earlier 1.5.5x.

21 Feb 2019, 11:24 AM
#3
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: 360 view addon

hi I just installed your add-on, because I like the 360 idea an wanted to try it out. But I ran into some problems, and I can not seem to get this working.

I copied all the files to my site and read all the instructions, which are IMHO very confusing with all the upper vs lowercase and "space" vs "underscore" talk. I have no clue what you are trying to tell in point 10 of adding a product.

For starters I thought to take an easy approach, and just rename one of the demo products to "Toy CAT" and add the link in the description. but when I view the product, the link does not show.

Am I doing something wrong?

21 Feb 2019, 12:03 PM
#4
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: 360 view addon

So it was me doing something wrong. I missed the part where you stated to put the link at the end of the description.
And as expected the link showed up just fine.
Although I like the basic idea of this mod, I think it is a bit to labour intensive and not very easy to use if you need to add a lot of products. Some form of automation will be needed. Maybe a back end page.
But like I said it works and I appreciate your effort of making this possible.

21 Feb 2019, 3:56 PM
#5
iatia avatar

iatia

Zen Follower

Join Date:
Nov 2009
Location:
Aransas Pass, TX
Posts:
102
Plugin Contributions:
1

Re: 360 view addon

Once it is setup, for a new product:

  1. Add the pics - gotta do that for any product
  2. Add to the catalog - gotta do that for any product
  3. The only addition is the definitions file.
21 Feb 2019, 4:26 PM
#6
iatia avatar

iatia

Zen Follower

Join Date:
Nov 2009
Location:
Aransas Pass, TX
Posts:
102
Plugin Contributions:
1

Re: 360 view addon

Design75:

I have no clue what you are trying to tell in point 10 of adding a product.

Point 10 - The naming convention;

The plug-in has to match the catalog product with the folder location. To do that, I compare the names by changing the 360 folder to lowercase with underscores to match the product file.

  1. Your new 360 product
  2. YOUR NEW 360 PRODUCT
  3. Your_new_360_product
  4. YOUR_NEW_360_PRODUCT
  5. YoUr_NeW_360_PrOdUcT
  6. YoUr NeW 360 PrOdUcT

All of the above can be changed by the plug-in to your_new_360_product.php via >$match = strtolower(str_replace(" ", "_", FOLDER_TITLE_360)) . ".php"< then matched. The idea was to get across the idea of what to name the 360 product folder so that the script could render a match to the actual product definitions file.

I used to have a friend of mine (who has unfortunately passed on) follow my instructions and as he was computer illiterate, it was easy to debug that way. I always understand what is in my head and sometimes I have presentation difficulties.

22 Feb 2019, 4:51 AM
#7
iatia avatar

iatia

Zen Follower

Join Date:
Nov 2009
Location:
Aransas Pass, TX
Posts:
102
Plugin Contributions:
1

Re: 360 view addon

I should add, for those with running stores, your products are already set in play.

To add a 360 view to an existing product, let's say 57 Chevy;

Add your photos (_00001.PNG, _00002.PNG, _00003.PNG, _000xx.PNG) to YOUR_STORE/images/360/57 Chevy. This folder MUST match the Products Name you setup in Admin --> Categories / Products and will be used for the definitions file.

Build a definitions file 57_chevy.php.
This must be named the same as the folder (but, with lowercase and underscores replacing spaces) and put it in YOUR_STORE/ includes/languages/English/YOUR_TEMPLATE/

// Definitions file for 57 Chevy
  define('NAVBAR_TITLE', '57 Chevy'); //<-- whatever navbar/breadcrumb name you want
  define('HEADING_TITLE', '57 Chevy'); //<-- whatever you want for the heading of the page
  define('FOLDER_TITLE', '57 Chevy'); //<-- this is the 360 folder title where the _00001.PNG etc. are located.
  define('TEXT_INFORMATION', 'Click or Drag the Picture'); //<-- anything you want here including nothing
  
  // set to -1 for responsive size (default)
  // set to 0 for actual size
  // or set custom width
  // height will be from original w/h ratio
  define('CUSTOM_WIDTH', '-1'); //<-- this is the default setting which works well with mobile devices
```Add <!--|360 view|--> to the end of your description, where "360 view" is whatever you want the link text to be.
The tags are important  **<!--|  |-->**  as that is what makes everything work.

To turn off the 360 viewing, just remove <!--|360 view|--> from the description and it will be as though no 360 plugin was added.  The plug-in looks for the tag when a single product is selected and if there is no tag, it does nothing.


Here is another one; 1870 Three Cent Nickel

1. These three names must be identical:
1. Admin --> Categories / Products: **1870 Three Cent Nickel**
2. 360 folder: *YOUR_STORE/images/360/**1870 Three Cent Nickel***
3. FOLDER_TITLE: **1870 Three Cent Nickel**
4. Add your photos (_00001.PNG, _00002.PNG, _00003.PNG, _000xx.PNG) to ***YOUR_STORE/images/360/1870 Three Cent Nickel***.
5. Build your product definitions file and place it in
***YOUR_STORE/ includes/languages/English/YOUR_TEMPLATE/1870_three_cent_nickel.php***
1. ```
  define('NAVBAR_TITLE', '1870 Three Cent Nickel');
  define('HEADING_TITLE', 'NAVBAR_TITLE');
  define('FOLDER_TITLE', 'NAVBAR_TITLE');
  define('TEXT_INFORMATION', 'Click or Drag the Picture');
  define('CUSTOM_WIDTH', '-1');
  1. Add <!--|360 view|--> to the end of your product description
25 Feb 2019, 6:12 AM
#8
iatia avatar

iatia

Zen Follower

Join Date:
Nov 2009
Location:
Aransas Pass, TX
Posts:
102
Plugin Contributions:
1

Re: 360 view addon

I also use the 360 view for browsing a large catalog of items. I have 43 old PC games. Instead of cataloging each one, I put them in a 360 view. This gives me one entry in the catalog with the ability to view each individual one. I am playing around with adding a shopping cart to the 360 view for a large catalog like this.

Browsing

19 Mar 2019, 10:55 PM
#9
iatia avatar

iatia

Zen Follower

Join Date:
Nov 2009
Location:
Aransas Pass, TX
Posts:
102
Plugin Contributions:
1

Re: 360 view addon

Well, I am almost done with version 2.0. This will put a radio button in the Admin -> Catalog / Products menu for 360 view and create the image folder and the definitions file. In practice, all one need do is check that box and upload the 360 image batch and all is good to go. This mod required some extensive editing of a dozen or so admin files to add in the db column "product_is_360". Because of the major editing, it will be under debugging for a while, if I upload it at all.

:smile: For $50,000, I will even build you a robot to take the pictures, rename them and upload them for you. :smile:

28 Mar 2019, 9:39 PM
#10
iatia avatar

iatia

Zen Follower

Join Date:
Nov 2009
Location:
Aransas Pass, TX
Posts:
102
Plugin Contributions:
1

Re: 360 view addon

Still debugging. Added multi language capability also.

15 Apr 2019, 5:29 PM
#11
iatia avatar

iatia

Zen Follower

Join Date:
Nov 2009
Location:
Aransas Pass, TX
Posts:
102
Plugin Contributions:
1

Re: 360 view addon

I have submitted ver 2.0 for review. Some major code changes include full automation of the install and removal.

The Admin --> Catalog / Products has been modified to setup the 360° product including full automation of creating the definition files.
Also Admin --> Images has the option to uninstall the plugin.

This has only been tested on ver 1.5.6a. If there is an interest, I can check on other versions. The init_sanitize needs to be modified at a minimum for other versions.

16 Apr 2019, 3:19 AM
#12
iatia avatar

iatia

Zen Follower

Join Date:
Nov 2009
Location:
Aransas Pass, TX
Posts:
102
Plugin Contributions:
1

Re: 360 view addon

Here is a multilanguage demo of 12 pics (Toy CAT) vs. 64 pics (watch).

Demo

15 May 2020, 7:13 PM
#14
jvdd avatar

jvdd

New Zenner

Join Date:
Apr 2019
Location:
Canada
Posts:
11
Plugin Contributions:
0

Re: 360 view addon

What a great addon! I have a couple of questions before trying to download and install it. Does this work for v1.5.5f and how would it affect the loading time and speed of the site? Thanks!

16 May 2020, 2:37 PM
#15
iatia avatar

iatia

Zen Follower

Join Date:
Nov 2009
Location:
Aransas Pass, TX
Posts:
102
Plugin Contributions:
1

Re: 360 view addon

It's been a while since I messed with it so I am not sure that ver 2.0 works with 1.5.5. Ver 1.1 was originally built on v1.5.5f.

The only speed issue is downloading the pics for the 360view which is only done at view time.