Dropshipping and PDF Purchase Orders for V156
ZC V156 new install with Ty Tracker and Dropship PDF Purchase orders only so far. I installed the Dropship plug in but cannot seem to locate an option to add subcontractors. Under Tools there is an option "PO/Edit Subcontractors" but I have not entered anyyet and there are not any showing of course. Where do I go to add the Subcontractors?
Re: Dropshipping and PDF Purchase Orders for V156
Which dropship module is being used? The one referenced here: https://www.zen-cart.com/downloads.php?do=file&id=688 indicates that it is not compatible with newer Zen Cart versions, though references a GitHub location (which may be compatible with newer versions). There is also this one: https://www.zen-cart.com/downloads.php?do=file&id=1536 which appears to be essential to support dropship operations possibly to include what is sought. Thing is that it indicates compatibility only up to ZC 1.5.1 as well. Upgrading for more recent compatibility may not be difficult for either plugin, but having/providing such information (along with searching any associated forum for the plugin(s) would help significantly).
Also, answering the posting tips questions would help as well as no history of a store has been shown other than joining the forum some time ago. Indicating the history of the store along with these plugins would help in identifying a path forwards. Please make it easy on yourself by making it easier for others to provide assistance.
Re: Dropshipping and PDF Purchase Orders for V156
Quote:
Originally Posted by
mc12345678
Which dropship module is being used? The one referenced here:
https://www.zen-cart.com/downloads.php?do=file&id=688 indicates that it is not compatible with newer Zen Cart versions, though references a GitHub location (which may be compatible with newer versions). There is also this one:
https://www.zen-cart.com/downloads.php?do=file&id=1536 which appears to be essential to support dropship operations possibly to include what is sought. Thing is that it indicates compatibility only up to ZC 1.5.1 as well. Upgrading for more recent compatibility may not be difficult for either plugin, but having/providing such information (along with searching any associated forum for the plugin(s) would help significantly).
Also, answering the posting tips questions would help as well as no history of a store has been shown other than joining the forum some time ago. Indicating the history of the store along with these plugins would help in identifying a path forwards. Please make it easy on yourself by making it easier for others to provide assistance.
Apologies for rushing through the initial posting. Dropship and PDF Purchase Order version is the newest 3.22. I had an older store that deprecated and I thought it best to begin anew. the new site is not up yet just trying to get setup completed first. If I remember correctly I believe the older site had an add supplier/contractor under tools but I have not found a way to add the suppliers yet. On the older site I did not need the Dropship Core Plugin as the previous version of this one provide what I needed. This plugin is installed and has a edit subcontractor option under tools but there seems to be no way to initiate an edit or add a supplier there.
Re: Dropshipping and PDF Purchase Orders for V156
The Github location points here for the support thread for this 1.5.x version. That is why I posted here.
1 Attachment(s)
Re: Dropshipping and PDF Purchase Orders for V156
This is what I see on the site.
Attachment 18739 There are no action buttons on the page. Cannot select anything on the page to get options, tried all of them.
Re: Dropshipping and PDF Purchase Orders for V156
Quote:
Originally Posted by
dallison
This is what I see on the site.
Attachment 18739 There are no action buttons on the page. Cannot select anything on the page to get options, tried all of them.
That looks like a "partial whitescreen", with the implication that there's a myDEBUG-adm-*.log file waiting in the store's /logs directory to let you know what's wrong.
If you post the contents of any such file found, remember that the myDEBUG-adm-*.log files include your site's secret admin directory name, so you'll want to xxx that out prior to posting!
Re: Dropshipping and PDF Purchase Orders for V156
Quote:
Originally Posted by
lat9
That looks like a "partial whitescreen", with the implication that there's a myDEBUG-adm-*.log file waiting in the store's /logs directory to let you know what's wrong.
If you post the contents of any such file found, remember that the myDEBUG-adm-*.log files include your site's secret admin directory name, so you'll want to xxx that out prior to posting!
Thanks for the heads up on the debug file and the following to help resolve this issue.
Below is the content of the debug file with admin info edited out.
[01-Dec-2019 20:42:51 America/New_York] Request URI: /xxxxx/edit_subcontrac.php, IP address: 76.77.161.1
--> PHP Warning: Use of undefined constant ID - assumed 'ID' (this will throw an Error in a future version of PHP) in /Ezinks/xxxxx/edit_subcontrac.php on line 159.
[01-Dec-2019 20:42:51 America/New_York] Request URI: /xxxxx/edit_subcontrac.php, IP address: 76.77.161.1
--> PHP Warning: Use of undefined constant ACTION - assumed 'ACTION' (this will throw an Error in a future version of PHP) in/Ezinks/xxxxx/edit_subcontrac.php on line 190.
[01-Dec-2019 20:42:51 America/New_York] PHP Fatal error: Uncaught Error: Call to undefined function mysql_query() in /Ezinks/xxxxx/edit_subcontrac.php:201
Stack trace:
#0 {main}
thrown in /Ezinks/xxxxx/edit_subcontrac.php on line 201
[01-Dec-2019 20:42:51 America/New_York] Request URI: /xxxxx/edit_subcontrac.php, IP address: 76.77.161.1
--> PHP Fatal error: Uncaught Error: Call to undefined function mysql_query() in /Ezinks/xxxxx/edit_subcontrac.php:201
Stack trace:
#0 {main}
thrown in/Ezinks/xxxxx/edit_subcontrac.php on line 201.
And here is the copy of the edit_subcontrac.php file. I only have notepad and wordpad so they don't list line numbers. I obviously need software that will list line numbers. I tried to upload but zencart would not upload saying it was an invalid file.
?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: customers.php 1612 2005-07-19 21:09:38Z ajeh $
//
require('includes/application_top.php');
require(DIR_WS_CLASSES . 'currencies.php');
?>
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
<script language="javascript" src="includes/menu.js"></script>
<script language="javascript" src="includes/general.js"></script>
<script type="text/javascript">
<!--
function init()
{
cssjsmenu('navbar');
if (document.getElementById)
{
var kill = document.getElementById('hoverJS');
kill.disabled = true;
}
}
// -->
</script>
</head>
<body onload="init()">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<br>
<!-- body //-->
<table border="0" width='100%' cellspacing="0" cellpadding="0">
<!-- body_text //-->
<?php
//delete
// pobieranie rozkazu i wykannie go
if(isset($_GET['what']) AND $_GET['what']=='delete')
{
$did=$_GET['did'];
$result=mysql_query("DELETE FROM ".TABLE_SUBCONTRACTORS." WHERE subcontractors_id='$did' LIMIT 1")
or die("Nie mozna usunac danych z bazy");
}
//save
if(isset($_GET['what']) AND $_GET['what']=='save')
{
$sid=$_GET['sid'];
$result=mysql_query("UPDATE ".TABLE_SUBCONTRACTORS." SET WHERE subcontractors_id='$sid' LIMIT 1")
or die("Nie mozna poprawic bazy");
}
//pobieranie danych dla polecenia inser oraz wykannaie go
if(isset($_GET['pole']) AND $_GET['pole']==1)
{
$short_name=$_GET['short_name'];
$full_name=$_GET['full_name'];
$street=$_GET['street'];
$zip=$_GET['zip'];
$city=$_GET['city'];
$state=$_GET['state'];
$telephone=$_GET['telephone'];
$contact_person=$_GET['contact_person'];
$e_mail=$_GET['e_mail'];
$result=mysql_query("INSERT INTO ".TABLE_SUBCONTRACTORS."(short_name, full_name, street1, zip, email_address, telephone, contact_person, city, state)
VALUES('$short_name','$full_name','$street','$zip','$e_mail','$telephone','$cont act_person', '$city', '$state')")
or die("Nie mozna ustawic nowych rekordow1");
echo "<meta http-equiv=\"refresh\" content=\"0 url=edit_subcontrac.php\">";
}
//save
if(isset($_GET['pole']) AND $_GET['pole']==0)
{
$short_name=$_GET['short_name'];
$full_name=$_GET['full_name'];
$street=$_GET['street'];
$zip=$_GET['zip'];
$city=$_GET['city'];
$state=$_GET['state'];
$telephone=$_GET['telephone'];
$contact_person=$_GET['contact_person'];
$e_mail=$_GET['e_mail'];
$key=$_GET['key'];
$result=mysql_query("UPDATE ".TABLE_SUBCONTRACTORS." SET short_name='$short_name', full_name='$full_name',
street1='$street', zip='$zip', city='$city', state='$state', email_address='$e_mail', telephone='$telephone', contact_person='$contact_person'
WHERE subcontractors_id='$key' LIMIT 1")
or die("Nie mozna ustawic nowych rekordow2");
}
//ustawianie zmiennej w celu sortowania danych w odpowiednie sposob
if(isset($_GET['list_order']))
{
if($_GET['list_order']=='firstname') $disp_order = "short_name ASC";
if($_GET['list_order']=='firstnamedesc') $disp_order = "short_name DESC";
if($_GET['list_order']=='lastname') $disp_order = "full_name ASC";
if($_GET['list_order']=='lastnamedesc') $disp_order = "full_name DESC";
if($_GET['list_order']=='company') $disp_order = "street1 ASC";
if($_GET['list_order']=='companydesc') $disp_order = "street1 DESC";
if($_GET['list_order']=='email') $disp_order = "email_address ASC";
if($_GET['list_order']=='emaildesc') $disp_order = "email_address DESC";
if($_GET['list_order']=='zip') $disp_order = " city_state_zip ASC";
if($_GET['list_order']=='zipdesc') $disp_order = "city_state_zip DESC";
if($_GET['list_order']=='telephone') $disp_order = "telephone ASC";
if($_GET['list_order']=='telephonedesc') $disp_order = "telephone DESC";
if($_GET['list_order']=='person') $disp_order = "contact_person ASC";
if($_GET['list_order']=='persondesc') $disp_order = "contact_person DESC";
}else
{
$disp_order = "subcontractors_id ASC";
}
// ustawianie linkow dla naglowkow szablonu ktore pozwalaja na sortowanie kolumn
?><tr><td class="pageHeading" colspan="2"><br><?php echo HEADING_TITLE_EDIT_SUBCONTRACTORS; ?><br><br></td></tr>
<tr> <td valign="top" width='80%'>
<table border="0" width='100%' cellspacing="0" cellpadding="0">
<tr class="dataTableHeadingRow">
<td width='3%' class="dataTableHeadingContent" align="center" valign="top">
<?php echo ID; ?>
</td>
<td width='14%' class="dataTableHeadingContent" align="center">
<?php echo TABLE_HEADING_SHORTNAME; ?><br>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=firstname'); ?>"><?php echo ($_GET['list_order']=='firstname' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</b>'); ?></a>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=firstnamedesc'); ?>"><?php echo ($_GET['list_order']=='firstnamedesc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</b>'); ?></a>
</td>
<td width='14%' class="dataTableHeadingContent" align="center">
<?php echo TABLE_HEADING_FULLNAME; ?><br>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=lastname'); ?>"><?php echo ($_GET['list_order']=='lastname' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</b>'); ?></a>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=lastnamedesc'); ?>"><?php echo ($_GET['list_order']=='lastnamedesc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</b>'); ?></a>
</td>
<td width='14%' class="dataTableHeadingContent" align="center">
<?php echo TABLE_HEADING_EMAIL; ?><br>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=email'); ?>"><?php echo ($_GET['list_order']=='email' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</b>'); ?></a>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=emaildesc'); ?>"><?php echo ($_GET['list_order']=='emaildesc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</b>'); ?></a>
</td>
<td width='14%' class="dataTableHeadingContent" align="center">
<?php echo TABLE_HEADING_TELEPHONE; ?><br>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=telephone'); ?>"><?php echo ($_GET['list_order']=='telephone' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</b>'); ?></a>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=telephonedesc'); ?>"><?php echo ($_GET['list_order']=='telephonedesc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</b>'); ?></a>
</td>
<td width='14%' class="dataTableHeadingContent" align="center">
<?php echo TABLE_CONTACT_PERSON; ?><br>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=person'); ?>"><?php echo ($_GET['list_order']=='person' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</b>'); ?></a>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=persondesc'); ?>"><?php echo ($_GET['list_order']=='persondesc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</b>'); ?></a>
</td>
<td width='15%' class="dataTableHeadingContent" align="right"><?php echo ACTION; ?> <br>
</tr>
<?php
$cid=$_GET['cID'];
if($cid=='')
{
$query2=mysql_query("SELECT subcontractors_id, short_name, full_name, email_address, telephone, contact_person FROM ".TABLE_SUBCONTRACTORS." LIMIT 1")
or die("Nie mozna sie polaczyc z baza danych");
$row2=mysql_fetch_array($query2, MYSQL_NUM);
$cid=$row2[0];
}
$query=mysql_query("SELECT subcontractors_id, short_name, full_name, email_address, telephone, contact_person FROM ".TABLE_SUBCONTRACTORS." order by $disp_order")
or die("Nie mozna polaczyc");
$k=0;
while($row=mysql_fetch_array($query, MYSQL_NUM))
{
if($cid!=$row[0])
{
echo '<tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(edit_subcontrac, zen_get_all_get_params(array('cID', 'action')) . 'cID=' . $row[0] . '&action=edit', 'NONSSL') . '\'">' . "\n";
}
else{
echo '<tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(edit_subcontrac, zen_get_all_get_params(array('cID', 'action')) . 'cID=' . $row[0] . '&action=edit', 'NONSSL') . '\'">' . "\n";
}
for($i=0; $i<count($row); $i++)
{
echo "<td align='center'>$row[$i]</td>";
}
if($k=='0')
{
$fond[0]=$row[0];
$fond[1]=$row[1];
}
$k++;
?>
<td align="right"> <?php if($cid!=$row[0])
{ ?>
<img src="images/icon_info.gif" border="0" alt="Info" title=" Info ">
<?php } else
{ ?>
<img src="images/icon_arrow_right.gif" border="0" alt="">
<?php
}
?>
</td></tr>
<?php }?>
</table>
</td>
<td valign="top" >
<table border="0" width='100%' cellspacing="0" cellpadding="2" align="center">
<tr>
<?php
$query2=mysql_query("SELECT * FROM ".TABLE_SUBCONTRACTORS." WHERE subcontractors_id='$cid'")
or die("Nie mozna sie polaczyc z baza danych");
$row2=mysql_fetch_array($query2, MYSQL_NUM);
// projekt szablonu do wyswietlania subcontracotow oraz wyswietlanie ich
?>
<td colspan="2" width='' class="infoBoxHeading">
<?php echo "ID:$row2[0] Full name:$row2[2] "; ?>
</td>
</tr>
<form name='form1' action="edit_subcontrac.php" METHOD="get">
<tr>
<td align="right" class="infoBoxContent"><?php echo TABLE_HEADING_SHORTNAME; ?></td>
<td width='75%' align="left" class="infoBoxContent"><input type='text' name="short_name" value="<?php echo $row2[1]; ?>"></td>
</tr>
<tr>
<td align="right" class="infoBoxContent"><?php echo TABLE_HEADING_FULLNAME; ?></td>
<td align="left" class="infoBoxContent"><input type='text' name="full_name" value="<?php echo $row2[2]; ?>"></td>
</tr>
<tr>
<td align="right" class="infoBoxContent"><?php echo TABLE_HEADING_STREET; ?></td>
<td align="left" class="infoBoxContent"><input type='text' name="street" value="<?php echo $row2[3]; ?>"></td>
</tr>
<tr>
<td align="right" class="infoBoxContent"><?php echo TABLE_HEADING_CITY; ?></td></td>
<td align="left" class="infoBoxContent"><input type='text' name="city" value="<?php echo $row2[4]; ?>"></td>
</tr>
<tr>
<td align="right" class="infoBoxContent"><?php echo TABLE_HEADING_STATE; ?></td></td>
<td align="left" class="infoBoxContent"><input type='text' name="state" value="<?php echo $row2[5]; ?>"></td>
</tr>
<tr>
<td align="right" class="infoBoxContent"><?php echo TABLE_HEADING_ZIP; ?></td></td>
<td align="left" class="infoBoxContent"><input type='text' name="zip" value="<?php echo $row2[6]; ?>"></td>
</tr>
<tr>
<td align="right" class="infoBoxContent"><?php echo TABLE_HEADING_EMAIL; ?></td>
<td align="left" class="infoBoxContent"><input type='text' name="e_mail" value="<?php echo $row2[7]; ?>"></td>
</tr>
<tr>
<td align="right" class="infoBoxContent"><?php echo TABLE_HEADING_TELEPHONE; ?></td>
<td align="left" class="infoBoxContent"><input type='text' name="telephone" value="<?php echo $row2[8]; ?>"></td>
</tr>
<tr>
<td align="right" class="infoBoxContent"><?php echo TABLE_CONTACT_PERSON; ?></td>
<td align="left" class="infoBoxContent"><input type='text' name="contact_person" value="<?php echo $row2[9]; ?>"></td>
</tr><input type="hidden" name="pole"><input type='hidden' name="key" value="<?php echo $row2[0]; ?>">
<tr>
<td colspan="2" class="infoBoxContent">
<input type="image" src="includes/languages/english/images/buttons/button_insert.gif" name='insert' ONCLICK="javascript: document.form1.pole.value=1;document.form1.submit();">
<input type="image" src="includes/languages/english/images/buttons/button_save.gif" ONCLICK="javascript:document.form1.pole.value=0;document.form1.submit();">
<a href="edit_subcontrac.php?what=delete&did=<?php echo $row2[0]; ?>"><img src="includes/languages/english/images/buttons/button_delete.gif" border="0" alt="Delete" title=" Delete "></a>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
Re: Dropshipping and PDF Purchase Orders for V156
In the future, please post code within [CODE][/CODE] tags. Besides being easier to read (lines do not auto-wrap) the code is presented in a smaller window.
I'm not familiar with the version numbers and as well as the exact source of that code, but in reading the comments in the plugins information, it identifies that the "older" code used direct database queries such as mysql_ and that is the issue reported in that log. Supposedly the GitHub location referenced also in those same comments may have been updated to use regular ZC type queries which are more independent of those type coding issues. Regardless, the version being used has not been updated for php versions beyond at least 5.6, I've forgotten where/when the transition occurred, but the code needs to be updated to work.
Re: Dropshipping and PDF Purchase Orders for V156
Quote:
Originally Posted by
dallison
The Github location points here for the support thread for this 1.5.x version. That is why I posted here.
What is that GitHub location?
Re: Dropshipping and PDF Purchase Orders for V156
Quote:
Originally Posted by
dallison
The Github location points here for the support thread for this 1.5.x version. That is why I posted here.
If I am looking at the correct GitHub location: https://github.com/scottcwilson/OLD_zen_DropShipPO where files of the same name as described here in this thread, the file of the same name as reported as an issue doesn't have direct database calls (e.g. mysql_query) and instead uses $db type queries. It also identifies a specific forum thread.
It appears that if the files at that location were used, that at least the current issue(s) would be resolved. To download those files, click the big green button on the right side and download as a zip or other type file. Then read through the instructions for installation.