开发者

Virtuemart preset product fields in admin

If you need to add a product in virtuemart I only use 25% of the products fields. I wish to preset the input fields so I don'开发者_开发问答t have to fill in all the fields. The problem is that the value of the input is a php-code to insert it into the database.

<input type="text" class="inputbox"  name="product_name" value="<?php echo shopMakeHtmlSafe( $db->sf("product_name")); ?>" size="32" maxlength="255" />

Is there a way to echo a standard value in the input fields? Without distrubing the connection or make it bug.

Thanks alot!


Can you just create one product manually, make it a "template product" (i.e. fields are prefilled as you want them), and then use the clone product feature?

In the Virtuemart backend, go to Products -> List Products, look next to the trashcan icon and you should see a "Clone Product" icon

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜