So I'll get 2 already define's comment out the 2nd definitions,
then get a long list of undefines?
Any clue where to look?
Type: Posts; User: wolfderby
So I'll get 2 already define's comment out the 2nd definitions,
then get a long list of undefines?
Any clue where to look?
Gotcha good advice. Thanks.
So I have this "working" however I was thinking of launching it publicly on a git repo, (ideally to help me get a coding job), but I don't think it's quite there yet.
Would anyone be interested in...
I think it should work if I remove my "hammering in the oID" just haven't done it yet. The various order table's autoincrement value (under operations in phpmyadmin) was high and I couldn't seem to...
Issues today: getting the order_id "right"
Possible solutions:
Solution "keep it ghetto" > no order object > sql lock the order tables > increment max order_id in sql > run inserts > unlock...
not to be anti-social, but the learning curve seems steep..
$nextOrderId = "SELECT MAX(orders_id)
FROM `orders`
LIMIT 1;";
$orderIdResult = $db->Execute($nextOrderId);
...
Confused on how to actually add the order object to the database. Here's a super basic version of what I currently have:
https://github.com/wolfderby/simple_admin_insert_order
I just started...
Thanks again for the input! This morning's endeavor shall be to create the simplest one order manually insertion php script using the order class.
this is the groaner section of code I need to objectify ;)
//THIS BLOCK IS HOW IT SHOULDN'T BE
$otherSql = " SELECT LAST_INSERT_ID();";
$newoIDResult =...
i need to still look into the last 2 replies but I skimmed code for a few hours this morning and really the only issue with...
$insertOrderSql = "INSERT INTO " . TABLE_ORDERS .
...
...so that sound... from my laptop... it's my bad code. :/ I KNEW IT! (:
Thanks for the input though, I had a feeling I was going down the wrong path, so I'm glad the community's here to chime...
...flash forward some days...
I have it sorta working... w/ the gmail api.
However I'm still new to thinking in an objected oriented design approach.
Looping through each received email, I'm...
ugh so yeah I think I have to delve deep into google's api to get the client object generated correctly? something dealing w/ directory paths I'm guessing.
Might meditate on this a while and try...
so if the token's in either path if it's referenced correctly it will work, however it if make the token.json (which was generated from google's quickstart code) into token.json.bak it not longer...
also asking this question on stackoverflow in case it's more appropriate there:...
So I have this mashed up and "working" (reading from my gmail and from an orders_amazon table I created in the zen-cart db)
However, it doesn't automatically create the token.json file as it...
If I'm not mistaken they do, but it's to the tune of $40/mo for the API included w/ the professional selling account. I haven't been able to hit a level of success to justify it.
Re: Dr Byte's suggestions:
Cool I'm going to look into IFTTT I have a few of those going for other things not web dev related. Should watch a few introductions to zapier and integromate.
Re:...
currently the only way I can get it to work is w/ a folder in the admin w/ an index.php I'm guessing it's security stuff that's above me. I'm open to other suggestions on approaches. I was also...
That and generally to practice using API's. Amazon Sellercentral Pro's $40/mo. for the amazon seller api. :/
...within that folder composer (
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
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:...
...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.
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.
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
...
So are you saying I should just put it in admin/includes?
^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.
...seemed to be a google api vendor folder issue (:
I'm not sure? first time using google api and composer > "composer require google/apiclient:^2.0"
seems like it might go that way then...
this might have worked: require(realpath(__DIR__ . DIRECTORY_SEPARATOR . '../includes/application.php')); but now i'm getting An error occurred: { "error": "unauthorized_client", "error_description":...
there is no...
/mysite/admin/myAdminScript/includes/application_top.php
...it's in...
/mysite/admin/includes/application_top.php
but a simple require('includes/application_top.php'); ends up w/ a Warning: require(includes/application_top.php): failed to open stream: No such file or directory in C:\... (because it's a xampp php...
Buildling in https:127.0.0.1/mysite/admin/myAdminScript
how do I require admin/includes/application_top.php ?
I've tried...
require(https:
require(http:
require(127.
require(__DIR__ ....
Is anyone interested in collaborating on importing amazon orders in as-automated-process-as-possible to within a zen-cart framework?
Current dev game-plan:
//sync productid or product model as...
PHP Fatal error: Redefinition of parameter $IMorder in mysite\admin\includes\functions\extra_functions\function_image_manager.php on line 89
any clue?
I also have hacks that allow you to live edit the price of products in the shopping cart, and allow you to post date the order, and change the mail-to email address of an old order to only email your...
so... something like...
if(isset($_COOKIE['specialAdminKeyCookieName'])){
//then do cool stuff like show jQuery stock status toggle button,
//or
//show checkbox for showing...
So I've taken to wrapping this logic from a while ago from within a browser cookie that can only be set by logging into the admin to set it. I have some fun hacks to the front end now that add admin...
Ok thanks, maybe one day I can do something fancier to make it more secure. I'm creating an if no image file, upload file/camera button on the front end. Goal is to swipe through products w/...
Is there a secure way to link to the admin from the front end? I'm trying to add some custom admin functionality to the front-end catalog side. I have it hidden both within a ip address and browser...
So I have my site backed up to gitlab.com
I ssh into my server and pull
I git bash into my local and pull/push
...issue I'm having... w/ hardcoded links to admin from catalog side.... a...
Paypal's limited my account, from the best I can figure, because I tried to 2 factor authenticate w/ a google voice phone #?
From Paypal:
Ouch... added a google voice phone to have boundaries in life... now exiled... it's my only form of payment collection?!
thanks for your thoughts/time on it though (:
I think it was an issue w/ the .htaccess file RewriteCond and browser caching it.
I want to start trying to switch up my workflow to localhosting w/ git and then pushing to github and my server w/ a service hook, as the end goal.
I've downloaded my files and my database onto my...
Thoughts on using the "your earnings" email amazon sends, in a text box (could probably pull in w/ gmail api if sent to gmail) then pulling variables/data by parsing by line breaks and looking for...
Ah snap I think I was just messing up the filename on upload. Forgot the prefix!
Yes I've tried chaddro's and yours. The MC git repo seems to only export 6 products for a basic line import, if I'm recalling correctly. Chaddros' exported all but doesn't see my delimiter for...