Re: how do I require application_top.php in folder in admin with a composer package?
...seemed to be a google api vendor folder issue (:
Re: how do I require application_top.php in folder in admin with a composer package?
What's the purpose of adding this api? What are you building?
Re: how do I require application_top.php in folder in admin with a composer package?
Quote:
Originally Posted by
wolfderby
...seemed to be a google api vendor folder issue (:
^ignore this
I want to set up a cron job to remove my sold amazon inventory using the "Sold, ship now:" emails from amazon sellercentral.
Re: how do I require application_top.php in folder in admin on localhost?
Quote:
Originally Posted by
lat9
What purpose is the additional admin sub-directory (/myAdminScript)? My localhost environments normally mimic the associated live site's directory structure, where the /admin sub-directory is at the same 'level' as the storefront /includes sub-directory.
So are you saying I should just put it in admin/includes?
Re: how do I require application_top.php in folder in admin on localhost?
I seem to have it working, I needed to have just tried to copy the design patterns already within the admin instead of forcing through 1 require.
basically shooting for /admin/my_script.php
then...
/admin/includes/classes/custom.php
/admin/includes/functions/maybe.php
/admin/includes/modules/kindaConfusedOnThisDir.php
...when I get closer maybe I'll put it on gitLab and share it for some suggestions.
Re: how do I require application_top.php in folder in admin with a composer package?
Quote:
Originally Posted by
wolfderby
I want to set up a cron job to remove my sold amazon inventory using the "Sold, ship now:" emails from amazon sellercentral.
Uhm... Why do you need to run it in admin then? If it's a cron job, and it's purpose is to adjust stock levels or update order statuses or something similar, why don't you run it from store root? Is there a specific reason why you're placing it in the admin directory?
Re: how do I require application_top.php in folder in admin with a composer package?
Quote:
Originally Posted by
balihr
Uhm... Why do you need to run it in admin then? If it's a cron job, and it's purpose is to adjust stock levels or update order statuses or something similar, why don't you run it from store root? Is there a specific reason why you're placing it in the admin directory?
I like the idea of putting the gmail api folder within an admin log-in, for assumed security reasons. Not sure if it'd be a risk or not really.
Re: how do I require application_top.php in folder in admin with a composer package?
...so when i try to move out the includes\gmail\credentials.json it creates a forbidden access 403 error for the .json file if I directly navigate to it, and I'm sure the path is correct.
Re: how do I require application_top.php in folder in admin with a composer package?
I'm basically trying to mash up this youtube series into the zen-cart admin: https://www.youtube.com/watch?v=j_ilbyXwIzI
if you follow that youtube series the code comes out like this: https://github.com/wolfderby/gmailTu...d_of_episode_6
Re: how do I require application_top.php in folder in admin with a composer package?
...within that folder composer (
Code:
composer require google/apiclient:^2.0
) builds out a /vendor folder dir w/ lots of the google api files
https://developers.google.com/gmail/api/quickstart/php