Jump to content
spooks

CONTRIBUTION Product Quick Edit

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.

Share this post


Link to post
Share on other sites
Simple addition: Added weight field.

Changed Files: product_quickedit_info.php

 

Uploaded as V2.1

Thanks Spooks, will check it out tomorrow.


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Thanks Spooks, will check it out tomorrow.

Works like a charm, thanks again.


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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

Heather...

 

icon_baby_crawl-1.gifCrawling my way through pages of code with my fingers crossed and one eye on here. Grateful to many at the osCommerce Community. Thank YOU

 

Coding successes: GV & Coupons, UltraPics, FCK Editor, Product Listings Enhancement, Short Descriptions, Define Main Page, Text Box, Attribute Sets Plus, . PayPal WPP. UL Catagories. Dynamenu. Featured Products. Mailist Report 1.2. Easy Meta Tags (Now even I could have screwed that up) Sold Out but Displayed 0.3. Club osc Specials on Front Page. Order Editor. HTML Emails V2

Working on: SEO

 

 

Proud member of the Code Breakers Club

Share this post


Link to post
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.

Share this post


Link to post
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.....


Heather...

 

icon_baby_crawl-1.gifCrawling my way through pages of code with my fingers crossed and one eye on here. Grateful to many at the osCommerce Community. Thank YOU

 

Coding successes: GV & Coupons, UltraPics, FCK Editor, Product Listings Enhancement, Short Descriptions, Define Main Page, Text Box, Attribute Sets Plus, . PayPal WPP. UL Catagories. Dynamenu. Featured Products. Mailist Report 1.2. Easy Meta Tags (Now even I could have screwed that up) Sold Out but Displayed 0.3. Club osc Specials on Front Page. Order Editor. HTML Emails V2

Working on: SEO

 

 

Proud member of the Code Breakers Club

Share this post


Link to post
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.

Share this post


Link to post
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:


Heather...

 

icon_baby_crawl-1.gifCrawling my way through pages of code with my fingers crossed and one eye on here. Grateful to many at the osCommerce Community. Thank YOU

 

Coding successes: GV & Coupons, UltraPics, FCK Editor, Product Listings Enhancement, Short Descriptions, Define Main Page, Text Box, Attribute Sets Plus, . PayPal WPP. UL Catagories. Dynamenu. Featured Products. Mailist Report 1.2. Easy Meta Tags (Now even I could have screwed that up) Sold Out but Displayed 0.3. Club osc Specials on Front Page. Order Editor. HTML Emails V2

Working on: SEO

 

 

Proud member of the Code Breakers Club

Share this post


Link to post
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:


Heather...

 

icon_baby_crawl-1.gifCrawling my way through pages of code with my fingers crossed and one eye on here. Grateful to many at the osCommerce Community. Thank YOU

 

Coding successes: GV & Coupons, UltraPics, FCK Editor, Product Listings Enhancement, Short Descriptions, Define Main Page, Text Box, Attribute Sets Plus, . PayPal WPP. UL Catagories. Dynamenu. Featured Products. Mailist Report 1.2. Easy Meta Tags (Now even I could have screwed that up) Sold Out but Displayed 0.3. Club osc Specials on Front Page. Order Editor. HTML Emails V2

Working on: SEO

 

 

Proud member of the Code Breakers Club

Share this post


Link to post
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.

Share this post


Link to post
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'


Heather...

 

icon_baby_crawl-1.gifCrawling my way through pages of code with my fingers crossed and one eye on here. Grateful to many at the osCommerce Community. Thank YOU

 

Coding successes: GV & Coupons, UltraPics, FCK Editor, Product Listings Enhancement, Short Descriptions, Define Main Page, Text Box, Attribute Sets Plus, . PayPal WPP. UL Catagories. Dynamenu. Featured Products. Mailist Report 1.2. Easy Meta Tags (Now even I could have screwed that up) Sold Out but Displayed 0.3. Club osc Specials on Front Page. Order Editor. HTML Emails V2

Working on: SEO

 

 

Proud member of the Code Breakers Club

Share this post


Link to post
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.

Share this post


Link to post
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


Heather...

 

icon_baby_crawl-1.gifCrawling my way through pages of code with my fingers crossed and one eye on here. Grateful to many at the osCommerce Community. Thank YOU

 

Coding successes: GV & Coupons, UltraPics, FCK Editor, Product Listings Enhancement, Short Descriptions, Define Main Page, Text Box, Attribute Sets Plus, . PayPal WPP. UL Catagories. Dynamenu. Featured Products. Mailist Report 1.2. Easy Meta Tags (Now even I could have screwed that up) Sold Out but Displayed 0.3. Club osc Specials on Front Page. Order Editor. HTML Emails V2

Working on: SEO

 

 

Proud member of the Code Breakers Club

Share this post


Link to post
Share on other sites

Hi Sam, this is a really good contribution, and we have already got a lot of use from it. One thing that would be nice is the ability to edit fields from the contribution "Products Extra Fields" is this possible?

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Heather...

 

icon_baby_crawl-1.gifCrawling my way through pages of code with my fingers crossed and one eye on here. Grateful to many at the osCommerce Community. Thank YOU

 

Coding successes: GV & Coupons, UltraPics, FCK Editor, Product Listings Enhancement, Short Descriptions, Define Main Page, Text Box, Attribute Sets Plus, . PayPal WPP. UL Catagories. Dynamenu. Featured Products. Mailist Report 1.2. Easy Meta Tags (Now even I could have screwed that up) Sold Out but Displayed 0.3. Club osc Specials on Front Page. Order Editor. HTML Emails V2

Working on: SEO

 

 

Proud member of the Code Breakers Club

Share this post


Link to post
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.

Share this post


Link to post
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


Heather...

 

icon_baby_crawl-1.gifCrawling my way through pages of code with my fingers crossed and one eye on here. Grateful to many at the osCommerce Community. Thank YOU

 

Coding successes: GV & Coupons, UltraPics, FCK Editor, Product Listings Enhancement, Short Descriptions, Define Main Page, Text Box, Attribute Sets Plus, . PayPal WPP. UL Catagories. Dynamenu. Featured Products. Mailist Report 1.2. Easy Meta Tags (Now even I could have screwed that up) Sold Out but Displayed 0.3. Club osc Specials on Front Page. Order Editor. HTML Emails V2

Working on: SEO

 

 

Proud member of the Code Breakers Club

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Here is a screenshot. You'll notice the column where the name should be is blank till about the middle, then it starts all over again, but with the name the way it should be.

 

Picture1.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×