Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 Backlight 2 Support » Embed Webshop into a wordpress website » 2020-01-27 18:48:58

Phoentje
Replies: 1

Hiya,

currently my website is active on https://www.circuitpics.nl
My webshop is active on https://www.circuitpics.nl/webshop

What I would like is to integrate the webshop into the main website. Maybe into a page wich opens the webshop engine etc?
Is this possible and how can I achieve this? Hope you can help me out on this one.

regards,
rene

#2 Re: Backlight 2 Support » Checkboxes stopped working » 2020-01-27 18:17:58

rod barbee wrote:

ah. I was just looking to see if the check boxes checked.
Looks like pop up html is missing in the page source code?


Jup, still not loading sad

This is the link that is clicked on

https://www.circuitpics.nl/webshop/back … text_terms

#3 Backlight 2 Support » Checkboxes stopped working » 2020-01-22 20:11:50

Phoentje
Replies: 8

Hi,

My checkboxes in the cart menu stopped working.
For example: https://www.circuitpics.nl/webshop/back … text_terms
When checking out I want those links to be working and showing the popup screen.

I activated HTTPS today,. Not sure if that has anything to do with it ?

#4 Re: Backlight Support » Ads on shop frontpage » 2019-09-13 16:55:06

Daniel Leu wrote:

please read my post again....

2) Function names changed and lost their arguments. You only need to remove the ttg_ prefix and whatever is between parentheses.

So

function header_top( $style, $path ) {

becomes

function header_top() {

Could not translate "parentheses", but now I understand.
It looks like it got the default page working now. http://www.circuitpics.nl/webshop/

If I now want to also have this visable in the galleries and albums I have to create those functions seperate albumset_top and album_top? Or can this be put in the same function?

#5 Re: Backlight Support » Ads on shop frontpage » 2019-09-13 14:58:14

Thanks. I checked both:
This is what I get when I enable the phpplugins.

Too few arguments to function PHPlugins::header_top(), 0 passed in /customers/f/8/a/circuitpics.nl/httpd.www/webshop/backlight/modules/module-designer/application/helpers/APHPlugins.php on line 63 and exactly 2 expected|#0 /customers/f/8/a/circuitpics.nl/httpd.www/webshop/backlight/modules/module-designer/application/helpers/APHPlugins.php(63): PHPlugins->header_top() #1 /customers/f/8/a/circuitpics.nl/httpd.www/webshop/backlight/data/designer/cache/101-page-2.0.0-1-195-menu_14-98-content-2.0.0-6-28-1-admin.view-1.template(218): APHPlugins->dispatch('header_top') #2 /customers/f/8/a/circuitpics.nl/httpd.www/webshop/backlight/modules/module-designer/application/helpers/CacheHelper.php(62): require_once('/customers/f/8/...') #3 /customers/f/8/a/circuitpics.nl/httpd.www/webshop/backlight/modules/module-designer/application/models/GenericEngine.php(575): CacheHelper::includeCachedFile('101-page-2.0.0-...', Array) #4 /customers/f/8/a/circuitpics.nl/httpd.www/webshop/backlight/modules/module-designer/application/controllers/PageController.php(124): GenericEngine->renderView('page', Object(EngineFactory), 'page') #5 /customers/f/8/a/circuitpics.nl/httpd.www/webshop/backlight/modules/module-framework/controllers/Controller.php(56): PageController->view('') #6 /customers/f/8/a/circuitpics.nl/httpd.www/webshop/backlight/modules/module-framework/models/Dispatchable.php(136): Controller->dispatch(Array) #7 /customers/f/8/a/circuitpics.nl/httpd.www/webshop/backlight/modules/module-framework/Framework.php(73): Dispatchable->dispatch() #8 /customers/f/8/a/circuitpics.nl/httpd.www/webshop/index.php(38): Framework->route() #9 {main}|URL: /webshop/index.php


And this is what my file looks like.

<?php
/*
*  TTG Core Elements "PHPlugins" User Hooks v1.2 - initialization mainline
*
*  developed by john bishop images (http://johnbishopimages.com)
*  for Matthew Campagna of The Turning Gate (http://theturninggate.net)
*
*/

function user_load($style, $path) {
  $g_tsvrl = explode(' ', $style); // Extract gallery type
  define ('G_STYLE', strtoupper($g_tsvrl[1])); // and set global for later
  $g_path = str_ireplace('\\','/',$path); // change \ to /
  $chunks = explode('/',$g_path); // and put into array
  define ('G_PATH', strtoupper($chunks[count($chunks)-2])); // gallery folder name is second to last
  //define ( 'TTG_SITE', ''); // set new site root for navigation, resources, etc.
}

if (defined('BACKLIGHT_HOOK')) {
    require_once(realpath(BACKLIGHT_HOOK).'/modules/module-designer/application/helpers/APHPlugins.php');
}

class PHPlugins extends APHPlugins
{
/*
*
*  *************************************************************************************
*  *                                                                                   *
*  * Warning! When using echo or print special care must be qiven to using quotes.     *
*  *                                                                                   *
*  * Strings inside single quotes must contain only double quotes                      *
*  * or all single quotes must be escaped (ie \') or vice-versa                        *
*  *                                                                                   *
*  *************************************************************************************
*
*  Fourteen user exits are defined in all web engines - all are optional
*    (i.e. user_load.php may be the only processing)
*
*  Some web engines will have additional exits defined, specific to that gallery type
*
*  Each is called with the same parameters:
*    %1  - TTG gallery-style gallery-release
*        3 blank delimited values
*        - %1.1  - 'TTG'
*        - %1.2  - string describing gallery type; no embedded blanks
*        - %1.3  - a series of two to three period delimited integers
*              describing gallery release level; x.y or x.y.z
*    %2  - server filesystem file name and path of calling file
*
*
*  Defined exits:
*
*    user_load
*      - return value ignored
*      - called immediately after this file returns
*      - called before any output is produced
*      - all header and response variables are accessible
*      - cookie and session processing can be initialized
*      - globals to be used by later hook calls can be defined
*
*    head
*      - return value ignored
*      - called immediately before </head>
*      - encompasses nothing; use to insert content into the <head>
*
*    header_top
*      - if return=false, the contents of the normal Backlight header are skipped
*      - called immediately within the header section
*      - encompasses the full contents of the header section; can be used to replace those contents
*
*    header_bottom
*      - return value ignored
*      - called last in the header section
*      - encompasses nothing; use to insert content at the end of the header section
*
*    masthead_primary_top
*      - if return=false, normal Backlight masthead is skipped
*      - called immediately before the masthead element
*      - fully encompasses the masthead; can be used to replace it
*
*    masthead_primary_bottom
*      - return value ignored
*      - called immediately after the masthead
*      - encompasses nothing; use to insert content after the masthead
*
*    masthead_secondary_top
*      - if return=false, normal Backlight masthead is skipped
*      - called immediately before the masthead element
*      - fully encompasses the masthead; can be used to replace it
*
*    masthead_secondary_bottom
*      - return value ignored
*      - called immediately after the masthead
*      - encompasses nothing; use to insert content after the masthead
*
*    navigation
*      - if return=false, normal Backlight navigation is skipped
*      - navigation is separate from the header section, so not affected by the above header... hooks.
*      - encompasses the navigation <ul> element; can be used to replace it
*
*    main_top
*      - return value ignored
*      - called immediately within the main content column
*      - encompasses nothing; use to insert content at the very top of the main content column
*      - located outside the password protected area
*
*    main_bottom
*      - return value ignored
*      - called immediately before closing the main content column
*      - encompasses nothing; use to insert content at the very bottom of the main content column
*      - located outside the password protected area
*
*    footer_top
*      - if return=false, the contents of the normal Backlight footer are skipped
*      - called immediately within the footer section
*      - encompasses the full contents of the footer section; can be used to replace those contents
*
*    footer_bottom
*      - return value ignored
*      - called last in the footer section
*      - encompasses nothing; use to insert content at the end of the footer section
*
*    pallet_top_title
*      - if return=false, the encompassed code is skipped
*      - wraps the site title in the top pallet
*      - use to replace the site title
*
*    toggle_T1
*      - if return=false, the encompassed code is skipped
*      - wraps the label element for "page__toggle__T1"
*      - use to replace the toggle button with one of your own making
*
*    toggle_T2
*      - if return=false, the encompassed code is skipped
*      - wraps the label element for "page__toggle__T2"
*      - use to replace the toggle button with one of your own making
*
*    social_top
*      - if return=false, normal content is skipped
*      - called immediately before social media icons in the top pallet
*      - encompasses the social media icons; can be used to replace them
*
*    social_bottom
*      - return value ignored
*      - called immediately after social media icons in the top pallet
*      - encompasses nothing; use to insert content following the social media icons
*
*    scripts
*      - return value ignored
*      - called immediately before </body>
*      - encompasses nothing; use to insert content at the very bottom of the page
*
*    copy_top
*      - if return=false, normal copy is skipped
*      - called immediately within the page copy area
*      - encompasses the page copy; can be used to replace it
*
*    copy_bottom
*      - return value ignored
*      - called immediately before closing the page copy area
*      - encompasses nothing; use to insert content following the page copy
*
*    pallet01_top
*      - if return=false, pallet content is skipped
*      - called within pallet01, after masthead and navigation
*      - encompasses the pallet01 content area
*
*    pallet01_bottom
*      - return value ignored
*      - called after the pallet01 content
*      - encompasses nothing; use to insert content at the end of pallet01
*
*    pallet02_top
*      - if return=false, pallet content is skipped
*      - called within pallet02, after masthead and navigation
*      - encompasses the pallet02 content area
*
*    pallet02_bottom
*      - return value ignored
*      - called after the pallet02 content
*      - encompasses nothing; use to insert content at the end of pallet02
*
*    albumset_top
*      - if return=false, normal copy is skipped
*      - called immediately within the media area
*      - encompasses the gallery grid / slideshow; can be used to replace it
*
*    albumset_bottom
*      - return value ignored
*      - called immediately before closing the media area
*      - encompasses nothing; use to insert content following the gallery grid / slideshow
*
*    album_top
*      - if return=false, the album content is skipped
*      - called immediately within the media area
*      - encompasses the album grid / slideshow; can be used to replace it
*
*    album_bottom
*      - return value ignored
*      - called immediately before closing the media area
*      - encompasses nothing; use to insert content following the album grid / slideshow
*
*    single_top
*      - if return=false, single image and content are skipped
*      - called immediately above the single image display
*      - encompasses the single image and related metadata; can be used to replace it
*      - available only on single-image HTML pages for applicable album templates
*
*    single_bottom
*      - return value ignored
*      - called after the single image display
*      - encompasses nothing; use to insert content following the single image display
*      - available only on single-image HTML pages for applicable album templates
*
*/

// SET USER FUNCTIONS BELOW
// Some example functions are included below. Feel free to delete or modify unwanted functions.
// ****************************************************************************************************



/* DELETE THIS LINE
// Basic structure for a PHPlugins function
function _HOOK_() {
    echo '

    ';
    return false;
} // END /**/



/* DELETE THIS LINE
function navigation() {
    echo '
    <ul class="primary-menu menu">
        <li class="menu-item"><a href="/">Home</a></li>
        <li class="menu-item menu-item-has-children"><a href="/galleries">Galleries</a>
            <ul class="sub-menu">
                <li class="menu-item"><a href="">Sub-item 1</a></li>
                <li class="menu-item"><a href="">Sub-item 2</a></li>
            </ul>
        </li>
        <li class="menu-item"><a href="/about">About</a></li>
        <li class="menu-item"><a href="/contact">Contact</a></li>
    </ul>
    ';
    return false;
} // END
DELETE THIS LINE */



// ****************************************************************************************************
// END USER FUNCTIONS
function header_top( $style, $path ) {
    $googleadsensecode = '
<center><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Circuitpics_shop -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-3043054831309820"
     data-ad-slot="5079864734"
     data-ad-format="auto"></ins>

<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></center>';
//now outputting this to HTML
echo $googleadsensecode;
return true;
} // END
} ?>

#6 Re: Backlight Support » Ads on shop frontpage » 2019-09-12 18:01:06

rod barbee wrote:

This seems to work, it creates the space for the ad. But the url to the ad isn't returning anything visible. If you follow the url you'll see no actual html output, it's just a js file.

function ttg_header_top( $style, $path ) { 
	$googleadsensecode = '
<script type="text/javascript">
google_ad_client = "pub-123456789";
google_ad_slot = "123456";
google_ad_width = 180;
google_ad_height = 150;
//-->
</script>
<script type="text/javascript"
src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';
//now outputting this to HTML
echo $googleadsensecode;
	return true;
} // END 

Hi, I have been using this and worked perfect for me.
Now that I am using the Backlight2 modules for page templates it seem to have broken for me.
I have enabled the PHP plugins in advanced and selected my version of the php file. But it will not showup?

www.circuitpics.nl/webshop

#7 Re: Backlight Support » Change "_" in order number and sort orders ascending » 2018-09-14 15:59:02

Any update on this regardig the new backlight 2? Purchased it and ready to install it. Hope to be able to edit the product order number now?

And some update on question 2 maybe?

#8 Re: Backlight Support » Change "_" in order number and sort orders ascending » 2018-05-22 21:37:23

rod barbee wrote:

1) I don’t know if that can be changed.
But you could copy the order number to a text editor and run a search and replace.


Not really an option for all those orders.... I hope I can get some help finally sorting this out.. It should be a character in the code somehwhere that can be adjusted?

#9 Backlight Support » SEO on webshop » 2018-05-22 21:36:18

Phoentje
Replies: 1

Hi,

How and what should I do for all my albums to get SEO worthy? For now I always set the description of on the collections. How should I be putting my descriptions so it get indexed by google?

#10 Re: Backlight Support » Change "_" in order number and sort orders ascending » 2018-05-15 15:23:14

rod barbee wrote:

3   Have you also set the Vendor Email Format to Normal rather than Compact?

Worked for the e-mail. Thanks.

Still hoping 1. and 2. can be solved.

#11 Backlight Support » Change "_" in order number and sort orders ascending » 2018-05-11 16:47:35

Phoentje
Replies: 5

Hi,

1.
Still have the request of changing the _ in the order number to something else like -
I communicate the ordernumber on bank transfers but those do not accept that character. I need to have this changed.

2.
Also when someone orders for example 10 photos but the order of clicking the photos in the cart is just random I would like to have the final order sorted out on example file name?. Makes life easier for searching the photo's.

3.
I have enabled to see thumbs in the order overview. But for some reason it is not showed in my email like that?

#12 Re: Backlight Support » Ads on shop frontpage » 2017-11-29 23:07:18

I found this": (this is an example adsense code)

<?php
//assign adsense code to a variable
$googleadsensecode = '
<script type="text/javascript">
google_ad_client = "pub-123456789";
google_ad_slot = "123456";
google_ad_width = 180;
google_ad_height = 150;
//-->
</script>
<script type="text/javascript"
src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';
//now outputting this to HTML
echo $googleadsensecode;
?>


Should I put this into the already present <php> </php> section?
And I translate ttg_header_top as being the posistion that the script is being placed?

#13 Re: Backlight Support » Ads on shop frontpage » 2017-11-29 22:51:32

Matthew wrote:

There are PHPlugins hooks for that.

I am trying to accomplish it right now.. not working very well for me so far.

When I look at the php plugin example I can put my <script> ...</script> after the </php>
Then it works but it will be above everything.

If I try the code into the page copy field it will show me the exact code in text instead of executing it.

When I put the <script> part into function ttg_header_top( $style, $path ) {

}

it will give me a lot of errors... where should I put it ?

#14 Re: Backlight Support » Ads on shop frontpage » 2017-11-09 18:41:57

rod barbee wrote:

you can probably do that by simply placing the html you get from Google into the page copy field.

If you need it in a specific place, you could use one of the hooks in phphlugins.

But putting it into the page copy field will make it be inside the shop. Can it be above the shop? Before content?

#15 Backlight Support » Ads on shop frontpage » 2017-11-09 03:28:24

Phoentje
Replies: 15

Hi all,

anyone who can assist or guide me how to place google ads on the front webshop page?
Like where and on wich file to place the google code?

Thx

#16 Backlight Support » SSL on backlight. » 2017-10-20 14:24:37

Phoentje
Replies: 2

Wich steps should I follow before/after I activate SSL on my domain?
I am running backlight on www.circuitpics.nl - www.circuitpics.nl/webshop

#18 Backlight Support » Fixed price above # of items » 2017-08-08 22:21:08

Phoentje
Replies: 4

Hi,

is there a way I can setup a fixed max price on digital orders?
Or is there a place where I can inform on the cart that there is a fixed price for example 7 items or more?

Thanks!

#19 Re: Backlight Support » Horizontal scrolling menu in albums list » 2017-04-14 22:38:44

rod barbee wrote:

the Flickity slideshow in Theater can have thumbnails beneath the large images in the slide show. But Cart is not available for this.

your cart seems to be working fine on Firefox. It looks like the masthead in the template you're using for the cart is messed up. (Backlight > Cart Settings > Personalisation)

It was possible in CE3 right? To get a thumbnail selection beneath photo selection browsing?

What u mean by masthead? I dont see any setting in personalisation there?

#20 Backlight Support » Horizontal scrolling menu in albums list » 2017-04-14 20:11:41

Phoentje
Replies: 4

Hi, I dont seem to be able to find but wasnt there an option here I can set that there is a horizontal scrolling beneath the photo I open from my shop?

Also is there someone who can test the shop in firefox or safari on a mac? I am getting complaints from customers who say that this is not working properly?

Thanks

www.circuitpics.nl/webshop

#21 Backlight Support » Enable SSL on domain. What effect on webshop? » 2017-02-15 23:12:22

Phoentje
Replies: 6

Hi,

I can and want to enable SSL on my domain. I can update my template (wordpress) to enable https. How will the webshop react on this change? Should I only edit the urls to https and LR or should I do some more settings?

Thanks

#22 Re: Backlight Support » No "View Cart" button. » 2017-02-15 23:10:11

Thanks for looking in Ben.
I will leave the PHP version on 7.1 then. I can change easily to 7.0 if the fix is far to find but for now I will leave it. I have send you my details so you can look the error up.
Let me know if it take more days because then I will switch it to 7.0

#23 Re: Backlight Support » Change webshop path » 2017-02-15 16:09:39

Matthew wrote:

The necessary elements are in the page source code, and I'm seeing no JS errors in the console. I would guess there's something choking on the back end of things, with totals calculating.

I see you're using European notation for prices, i.e. "55,00". We have a setting to display values as such on your albums, but you would still need to create your profiles using standard notation, i.e. "55.00". Can you confirm the latter in your pricing profiles?

Hi Matt,
I checked the above. I have no prices defined with the "," . All are done with the "."
I have created like Rod requested a new post for this. Also emailed Ben with login details. Would you like to have a look aswell?

#24 Re: Backlight Support » No "View Cart" button. » 2017-02-15 06:59:44

rod barbee wrote:

this is a wild-ass guess. But try editing one of your albums. It might just mean clicking the edit button once the edit dialog opens.

Another wild-ass idea. Create a new album template. Just clone the existing one and give it another name. Then switch an album to the new template.
I'm just wondering if somehow the album template isn't talking to the cart like it should (not really knowing anything about how that actually happens...)

Thanks for the tips. I tried. Stays the same sad ill send Ben an email

#25 Re: Backlight Support » No "View Cart" button. » 2017-02-15 03:29:57

Reset the customer's cart in this browser and clear cache yes

Board footer

Powered by FluxBB