Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

CONTRIBUTION Product Quick Edit


spooks

Recommended Posts

Simple addition: Added weight field.

Changed Files: product_quickedit_info.php

 

Uploaded as V2.1

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Thank you Spooks!

 

Whitch line is the "weight" on?

 

I would just like to add the change into my existing file as I changed the size of some input fields, so I do not want to overwrite the complete file.

 

Thank you for your Feedback.

 

Best

Zeno

Link to comment
Share on other sites

Thank you Spooks!

 

Whitch line is the "weight" on?

 

Ok, it is on line 252. Sorry for the simple question. The weight field is in my OsCommerce now! How nice!

 

Now one "last" request: Could you possibly also add the Drop-Down for the Manufacturer as well? Ahh that would be so wunderful. Because Quick-Edit is just soo much better then the normal edit.

 

Thank you soo much for your Feedback.

 

Best

Zeno

Link to comment
Share on other sites

I think your looking for SPPC.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

  • 3 weeks later...

Hi Sam

 

Added this just now and its there and searches and finds FAB! It calls FCK and I can edit everything except the quantity

(the very thing I need to edit the most LOL!) I have additonal images installed and it doesn't let me edit those but I doubt I

would ever need to, just descriptions and quantities really.

 

Also any idea why it might log me out of admin after each move ? :lol: :lol:

 

Fab fab stuff or it will be once I stop getting the boot! :D

 

Thanks

 

Edit: Coz I can't spell

Edited by Design Recollections
Link to comment
Share on other sites

In product_quickedit_info.php

 

there is a line that says

 

$edit_quantity=false; // set this to false to prevent quantity edit otherwise true

 

I thought it was self explanitory??

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

In product_quickedit_info.php

 

there is a line that says

 

$edit_quantity=false; // set this to false to prevent quantity edit otherwise true

 

I thought it was self explanitory??

 

It is but your dealing with a complete EJIT that can't dam well read :rolleyes:

 

*awards self prize prat award and hangs head in utter shame!* :blush: :blush:

 

Can I please ask about being logged out constantly using quick edit? Have I made some other stupid blunder that you can shame me with?

 

sooooowwwwyyy again.....

Link to comment
Share on other sites

Can you say exactly what logs you out, clicking on update or edit or cancel??

 

And what type of log in (sql sessions?)

Edited by spooks

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Just now I did this >

 

Clicked Quick edit and got the search screen.

Typed in a product name and hit search and got logged out, happens with every move within quick edit Sam. I have to log in to complete the next step.

 

Thanks for coming back to help :blush:

Link to comment
Share on other sites

And what type of log in (sql sessions?)

 

have to log in back at the admin main page IYKWIM, then it take me to where I left off. Hope that makes sense as I didn't quite understand what sql session log in means :blush:

Link to comment
Share on other sites

have to log in back at the admin main page IYKWIM, then it take me to where I left off. Hope that makes sense as I didn't quite understand what sql session log in means :blush:

 

 

In your includes/configure.php do you have:

 

define('STORE_SESSIONS', 'mysql');

 

and at what point do you get logged out??

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Sorry, someone came to visit :rolleyes: Kettle now on LOL!

 

In your includes/configure.php do you have:

 

define('STORE_SESSIONS', 'mysql');

 

Yes I do

and at what point do you get logged out??

 

as soon as I hit 'search' or 'update' or 'cancel'

Link to comment
Share on other sites

I suspect its loss of sid due to bugs remaining from original.

 

In product_quickedit.php

 

find (56):

 

<form name="search_products" method="GET" action="product_quickedit.php">

replace with

 

<form name="search_products" method="GET" action="<?php echo tep_href_link('product_quickedit.php') ?>">

find (60):

 

<?php echo tep_draw_separator('pixel_trans.gif', '6', '1') ?><INPUT TYPE=BUTTON OnClick="location.href='product_quickedit.php?pSearch=%'" value=" Show All ">

replace with:

 

<?php echo tep_draw_separator('pixel_trans.gif', '6', '1') ?><INPUT TYPE=BUTTON OnClick="location.href='<?php echo tep_href_link('product_quickedit.php','pSearch=%') ?>'" value=" Show All ">

find (68):

 

<form name="form1" method="POST" action="product_quickedit.php">

replace with:

 

<form name="form1" method="POST" action="<?php echo tep_href_link('product_quickedit.php') ?>">

find(106):

 

<td width="10%" valign="top" class="dataTableContent"><a href="product_quickedit_info.php?action=edit&pID=<?php echo $product['products_id'] . "&prod_search=" . $prod_search; ?>">Edit</a></td>

replace with:

 

<td width="10%" valign="top" class="dataTableContent"><a href="<?php echo tep_href_link('product_quickedit_info.php', 'action=edit&pID='. $product['products_id'] . '&prod_search=' . $prod_search) ?>">Edit</a></td>

 

 

In product_quickedit_info.php

 

find (384)

 

<td><INPUT TYPE=BUTTON OnClick="location.href='product_quickedit.php?pID=<?php echo $pID . '&pSearch=' . $prod_search; ?>'" value=" Cancel "> <?php

 

replace with

 

<td><INPUT TYPE=BUTTON OnClick="location.href='<?php echo tep_href_link('product_quickedit.php','pSearch=' . $prod_search.'&pID='.$pID ) ?>'" value=" Cancel "> <?php

 

Let me know how it goes.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Kicked the vistor out now, don't they know I am working here?? :lol: Drinks my coffee, nabs some of my stock and holds me back LOL! She is lovely really ;)

 

Anyways, after the code edits:

 

We are much better now. I still get logged out after searching for a product to edit. But now can complete edits in turn without getting logged out. So imporvements in update, preview and cancel for sure :D

Link to comment
Share on other sites

Dont see why after those edits, still try

 

In product_quickedit.php

 

replace (56)

 

<form name="search_products" method="GET" action="<?php echo tep_href_link('product_quickedit.php') ?>">

 

with

 

<?php echo tep_draw_form('search_products', 'product_quickedit.php', '', 'get');   ?>

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

None of my clients use Products Extra Fields, so I have no insentive to add it sorry.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

The only other issue I can see is:

 

In product_quickedit.php

 

find (100):

 

'<b><a href="product_quickedit_info.php?action=preview&read=only&pID=' . $product['products_id'] . '&prod_search=' . $prod_search . '">' .  $product['products_name'] . '</b>' . ($short ? '<br>' . $product['short_desc'] : '') . '</a>';

 

replace with:

 

'<b><a href="' . tep_href_link('product_quickedit_info.php', 'action=preview&read=only&pID=' . $product['products_id'] . '&prod_search=' . $prod_search) . '">' .  $product['products_name'] . '</b>' . ($short ? '<br>' . $product['short_desc'] : '') . '</a>';

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Some what delayed by life's interruptions :rolleyes: I did that last edit just now and I still get kicked, must be something my side, who knows, however, 'view all' works and its still quicker than going through the catalogue :D I have a speedy machine and good scroll so I shall carry on using, thanks a million for trying to help Sam, most appreciated! Ta

Link to comment
Share on other sites

First off I'd like to than you for this awesome time saving contribution!

 

The "ONLY" problem I am having is when I go to Quick Edit from my Admin, it displays all my products perfectly, except the name is blank. Then it displays all my products with the name. Basically, it posts each product twice. Any help would be greatly appreciated. I am using version 2.1 from: http://addons.oscommerce.com/info/5680

Edited by marketedsites
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...