Guest Posted August 3, 2004 Posted August 3, 2004 Hello I currently run a successful oscommerce shop, my friend who has a similar popular site agreed to allow me to add my shop to his site, as he owes me a favour. (I dont mean just a normal link, i mean upload oscommerce to his FTP and link to my database) Nice and Easy so far. My oscommerce on my FTP and his oscommerce on his FTP are both linked to my database so they are both identicle, apart from the colours and images. The only problem i've found so far is, when i add a product to my admin, it displays on both shops, but only add's the image to my FTP. which is understandable. So my question is, how do i make the admin add the same image to both FTPs? I had 2 ideas how this could maybe be done. 1) add a shortcut onto his FTP to point to my images folder on my FTP. 2) add some code to my admin so when adding a product it saves to both my FTP and his. any suggestions please? Thanks!
♥yesudo Posted August 3, 2004 Posted August 3, 2004 maybe try changing the image dir path in the config file/s on his store. Your online success is Paramount.
Guest Posted August 3, 2004 Posted August 3, 2004 good answer. but it half worked. yes it means his shop displays ALL of the product images from my FTP. but it now means my friends shop uses my custom oscommerce images from my FTP instead of his. (E.G: different colour arrows and shopping trolly images, etc) really i think it needs some code adding to the "add_new_product" page in the admin section, to upload the product image to both my FTP and his FTP at the same time.
Guest Posted August 3, 2004 Posted August 3, 2004 here's the code from the add product page categories.php?cPath=&action=new_product <td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?></td> <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_file_field('products_image') . '<br>' . tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . $pInfo->products_image . tep_draw_hidden_field('products_previous_image', $pInfo->products_image); ?></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <?php for ($i=0, $n=sizeof($languages); $i<$n; $i++) { ?> <tr> <td class="main"><?php if ($i == 0) echo TEXT_PRODUCTS_URL . '<br><small>' . TEXT_PRODUCTS_URL_WITHOUT_HTTP . '</small>'; ?></td> <td class="main"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('products_url[' . $languages[$i]['id'] . ']', (isset($products_url[$languages[$i]['id']]) ? $products_url[$languages[$i]['id']] : tep_get_products_url($pInfo->products_id, $languages[$i]['id']))); ?></td> </tr> <?php } ?> anyone know what code to add to make it upload an image to 2 FTP accounts?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.