Zen Cart Logo
Forums / Addon Admin Tools / Quick Updates plugin [support]

Quick Updates plugin [support]

Views: 180,419

Results 361 to 380 of 670
17 Jan 2008, 9:49 AM
#361
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Quick Updates plugin [support]

Hi Chaddro,

a problem with check boxes is that they only can be checked, not "unchecked".

A checked checkbox may post a value of 1 to the next page.
i.e.: $_POST['quick_updates_new']['product_is_call'] = 1

But an unchecked checkbox does not post any data, and so it is the same as having no checkbox at all. That is why it can only switch on what is off, but not the other way around (I hope this explanation makes sense...).

A way around this is to use 2 radio inputs (true/false or on/off or whatever). There are other ways to solve it of course, but I think using the radio inputs is the easiest in this case.

17 Jan 2008, 7:12 PM
#362
chadderuski avatar

chadderuski

Totally Zenned

Join Date:
Apr 2006
Location:
Dark Side of the Moon
Posts:
986
Plugin Contributions:
0

Re: Quick Updates plugin [support]

paulm:

a problem with check boxes is that they only can be checked, not "unchecked".

A checked checkbox may post a value of 1 to the next page.
i.e.: $_POST['quick_updates_new']['product_is_call'] = 1

But an unchecked checkbox does not post any data, and so it is the same as having no checkbox at all. That is why it can only switch on what is off, but not the other way around (I hope this explanation makes sense...).

Hi Paul,

Thanks for looking at this. I didn't know this about checkboxes. When you uncheck a checkbox, it doesn't POST anything? Hmmm... I don't have the code in front of me, but some of the extra efforts I saw around product_status is making sense.

I was able to get the unchecking working, but then the form updated ALL the records on the page for the checkbox instead of just the one changed.

I am using the "status" checkbox at my roadmap, but missing something. The original programmers added a lot of functionality to status (record filtering) on top of simply changing status. But even when I code it JUST like them, it isn't working.

I think I am just missing something simple. Nothing like being this >< close, but just not getting it. Your radio button solution makes sense after looking at the regular product editing code. But I'd sure like to use the checkbox... :)

well, back to the grind stone !

18 Jan 2008, 11:18 AM
#363
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Quick Updates plugin [support]

chadderuski:

When you uncheck a checkbox, it doesn't POST anything?Exactly. This amazed me at first too, but when you think about it it does make sense after all. What value shoud it post when uncheked? And it works similar to radio inputs: only a checked radio input sends data.

18 Jan 2008, 6:13 PM
#364
lextechs avatar

lextechs

Zen Follower

Join Date:
Mar 2005
Location:
Tempe, AZ
Posts:
316
Plugin Contributions:
0

Re: Quick Updates plugin [support]

Any pointers as to where to start looking, i am not a programmer however i can pretty much understand the code, and work through it but i have no idea where to look, by the way sorry for the delay in getting back to the board been busy

paulm:

Adding columns is not complicated, but it does require some custom coding. You can take a look at the code and use the existing columns as an example.

18 Jan 2008, 7:03 PM
#365
chadderuski avatar

chadderuski

Totally Zenned

Join Date:
Apr 2006
Location:
Dark Side of the Moon
Posts:
986
Plugin Contributions:
0

Re: Quick Updates plugin [support]

Lextechs:

Is this field in the products database? If it is, it should be quite simple to add it. You only need to edit two files. One is the main quick_updates.php, and the other is in the includes/languages/english (i hope I remember that right) directory. The second file is used to define your column headers. If you are going to add a pricing column, then model it after an existing price column.

I was able to add two fields minimum order quantity and quantity units in about 20 minutes with testing.

BE SURE TO BACK YOUR DATA UP with the plug-in!

With these two fields, it was merely a matter of duplicating the code, then using the appropriate field name in the database (use phpMyAdmin to see structure, or download your MySQL backup and look there) in place of the similar field.

Really a no brainer.

Wish I could say that about Check Boxes (gnashes teeth)!

-Chaddro.

19 Jan 2008, 3:50 PM
#366
brylees avatar

brylees

New Zenner

Join Date:
Oct 2006
Posts:
8
Plugin Contributions:
0

Re: Quick Updates plugin [support]

First, I would like to say I really appreciate this Mod. It used to work for me but I can't figure out what caused this formatting problem. Here is my screen shot. Should I delete and re-install the mod?

24 Jan 2008, 2:58 PM
#367
hosiya avatar

hosiya

New Zenner

Join Date:
Jan 2008
Location:
Almaty
Posts:
3
Plugin Contributions:
0

Re: Quick Updates plugin [support]

hey guys,
i got the problem blow:

**Sorry, your security clearance does not allow you to access this resource.

Please contact your site administrator if you believe this to be incorrect.

Sorry for any inconvenience.**

what i have to do?

26 Jan 2008, 1:11 AM
#368
brylees avatar

brylees

New Zenner

Join Date:
Oct 2006
Posts:
8
Plugin Contributions:
0

Re: Quick Updates plugin [support]

I still can't figure out my layout problem as shown above. I have deleted everything and re-installed. Deleted all instances in my data file and re-installed no luck. Any ideas would be GREATLY appreciated.:frusty:

26 Jan 2008, 1:24 AM
#369
brylees avatar

brylees

New Zenner

Join Date:
Oct 2006
Posts:
8
Plugin Contributions:
0

Re: Quick Updates plugin [support]

I figured it out..I would say thanks for the reply but I never received any.

26 Jan 2008, 2:38 AM
#370
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: Quick Updates plugin [support]

brylees:

I figured it out..I would say thanks for the reply but I never received any.

Even though you haven't received a reply, it is always good to give thanks to everyone who contributes to zen cart. It is even better to contribute to the zen community yourself by posting how you solved your problem. Many of the problems you will need help with in the future will most likely be answered by someone who used to have the same problem.

29 Jan 2008, 1:56 PM
#371
ryska avatar

ryska

New Zenner

Join Date:
Apr 2005
Location:
Louny, Czech Republic
Posts:
50
Plugin Contributions:
0

Re: Quick Updates plugin [support]

Hello,

I need add another fields from database, ex.: products_discount_price. But I have problem displaying price with TAX in function updategross() and updatenet().

Original code:

function updateGross(product) {
  var taxRate = getTaxRate(product);
  var inname = "quick_updates_new[products_price][" + product + "]";
  var outname = "quick_updates_new[products_taxprice][" + product + "]";
  var grossValue = document.forms["quick_updates"].elements[inname].value;

  if (taxRate > 0) {
    grossValue = grossValue * ((taxRate / 100) + 1);
  }

  document.forms["quick_updates"].elements[outname].value = doRound(grossValue, 2);
}

and

function updateNet(product) {
  var taxRate = getTaxRate(product);
  var inname = "quick_updates_new[products_taxprice][" + product + "]";
  var outname = "quick_updates_new[products_price][" + product + "]";
  var netValue = document.forms["quick_updates"].elements[inname].value;

  if (taxRate > 0) {
    netValue = netValue / ((taxRate / 100) + 1);
  }

  document.forms["quick_updates"].elements[outname].value = doRound(netValue, 6);
}

Thanx for help.

29 Jan 2008, 4:51 PM
#372
ryska avatar

ryska

New Zenner

Join Date:
Apr 2005
Location:
Louny, Czech Republic
Posts:
50
Plugin Contributions:
0

Re: Quick Updates plugin [support]

or display WHOLESALE_PRICE without and with TAX.

30 Jan 2008, 1:45 AM
#373
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: Quick Updates plugin [support]

ryska:

or display WHOLESALE_PRICE without and with TAX.

You can display the wholesale price without tax by going to:

admin\includes\extra_configures\quick_updates.php

find:

// change to 'true' to enable wholesale price updates
define('QUICKUPDATES_MODIFY_WHOLESALE_PRICE', 'false');

and change false to true

But as far as displaying those prices with tax... I can't help you there!

30 Jan 2008, 6:54 PM
#374
lextechs avatar

lextechs

Zen Follower

Join Date:
Mar 2005
Location:
Tempe, AZ
Posts:
316
Plugin Contributions:
0

Re: Quick Updates plugin [support]

Chadderuski,

Thanks for the step in the right direction from your help and help of others on the in the board i got it work along with changes made to EX-pop good luck with your check boxes

chadderuski:

Lextechs:

Is this field in the products database? If it is, it should be quite simple to add it. You only need to edit two files. One is the main quick_updates.php, and the other is in the includes/languages/english (i hope I remember that right) directory. The second file is used to define your column headers. If you are going to add a pricing column, then model it after an existing price column.

I was able to add two fields minimum order quantity and quantity units in about 20 minutes with testing.

BE SURE TO BACK YOUR DATA UP with the plug-in!

With these two fields, it was merely a matter of duplicating the code, then using the appropriate field name in the database (use phpMyAdmin to see structure, or download your MySQL backup and look there) in place of the similar field.

Really a no brainer.

Wish I could say that about Check Boxes (gnashes teeth)!

-Chaddro.

31 Jan 2008, 10:55 PM
#375
brylees avatar

brylees

New Zenner

Join Date:
Oct 2006
Posts:
8
Plugin Contributions:
0

Re: Quick Updates plugin [support]

craftzombie:

Even though you haven't received a reply, it is always good to give thanks to everyone who contributes to zen cart. It is even better to contribute to the zen community yourself by posting how you solved your problem. Many of the problems you will need help with in the future will most likely be answered by someone who used to have the same problem.

You are exactly right. I was just frustrated at the time trying to resolve what I thought was a problem. I do appreciate those out here making Zen Cart what it is. Zen Cart has been a blessing for me and I am really happy with what it has become so far. I expect meany great things in the future and will contribute any usefull information I may come up with.:smile:

4 Feb 2008, 5:39 AM
#376
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: Quick Updates plugin [support]

Can anyone tell me how to change the width of the Name Column? I would like is to be about twice as wide, but the category column could be about half as wide, and the category numbers don't need to display at all. Thanks!

4 Feb 2008, 6:27 AM
#377
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: Quick Updates plugin [support]

gothstone:

Can anyone tell me how to change the width of the Name Column? I would like is to be about twice as wide, but the category column could be about half as wide, and the category numbers don't need to display at all. Thanks!

Hopefully this works for you. It did for me!

Open up admin/includes/stylesheet_quick_updates.css

and add this:

.productsName input { width: 15em; }

td.smallText option {width:7em;}

You can play with the numbers to get the sizes you want.

I'm not sure about not displaying the cat numbers though.

7 Feb 2008, 10:55 AM
#378
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
730
Plugin Contributions:
0

Re: Quick Updates plugin [support]

Hello there,

I wonder if anyone had a fix for using the popup edit function. When you save the description, it doesn't save when you look at the item. I have a modified product info in the admin, with extra fields, so may be something to do with that.

Thanks in advance,

Heathenmagic

8 Feb 2008, 12:34 AM
#379
mediatux avatar

mediatux

New Zenner

Join Date:
Feb 2008
Location:
Herdorf, Germany
Posts:
2
Plugin Contributions:
0

Re: Quick Updates plugin [support]

Hello everyone!

First of all a lot of thanks to all those who contribute their Stuff to the Community, specially paulm for his great QU!

I downloaded ver 2.04 from the Dutch-Hompage, and installed it on 1.37.1-german(from zen-cart.at) after adding a german translation for the headings and a slight modification in the .sql(added '43' to the Values in Line 17)-works perfectly!!!

When I did my translation('d like to contribute the complete german-mod also to zen-cart.at but stucking with the Translation of the Insall/Readme..), I saw the following Stuff in the .php: // (In my case I added "products_artlid" because I wanted to store the article id's from my main supplier into my database)

It would be an great help for me (and some other persons too?!..) to know, how to activate exactly this thing.. Since days i've tried to discover(even via search in several intl' Zen-Forums, but as I have no use in English(sorry for my crappy writing..) it's harder with languages you even never heard..) which line I have to add to my SQL-Database.. Sorry for asking, but mainly I use my (Linux-)Computers for Mediastuff, Artwork and so on.. Okay, I'm able to install a Zen-Cart and Style it in my way, but I have no Idea how and with wich exact Syntax to write a(this) patch for a Database!?

An other thing, which I didn't solve for me is, how to modify the category-drop-down-list in the manufacturers-search-results to show the complete category-path instead only the last subcategories of the products..

Is there anybody in the wide World who could help me with this article-id-thing and/or the search problem?! Thanks a lot!!!

13 Feb 2008, 9:19 AM
#380
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Quick Updates plugin [support]

HeathenMagic:

I wonder if anyone had a fix for using the popup edit function. When you save the description, it doesn't save when you look at the item.Do you click Update (the button that updates all listed product) after saving the edits? It is a bit confusing at first, but when you click Save after editting the description(s) the edits are saved to the page only. And if you then click Update all the changes are saved to the database.

@mediatux: products_artlid is indeed something I added for my own usage. I do not have an answer now though, but I hope to have time to get back to you later.