- Cambios
git-svn-id: https://192.168.0.254/svn/Proyectos.OriginalHouse_Web/trunk@8 54e8636e-a86c-764f-903d-b964358a1ae2
BIN
información/Fotos muebles/Aparadores/ACRO-30A.jpg
Normal file
|
After Width: | Height: | Size: 80 KiB |
BIN
información/Fotos muebles/Aparadores/ACRO-66ML.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
información/Fotos muebles/Aparadores/ARI-102247.jpg
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
información/Fotos muebles/Aparadores/ARI-102284.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
información/Fotos muebles/Aparadores/ARI-102287.jpg
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
información/Fotos muebles/Aparadores/CAC-599-003649.jpg
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
información/Fotos muebles/Aparadores/CAC-599-004463.jpg
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
información/Fotos muebles/Aparadores/CAC-599-004565.jpg
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
información/Fotos muebles/Aparadores/DUG-661.jpg
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
información/Fotos muebles/Aparadores/DUG-741-NEGRO.jpg
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
información/Fotos muebles/Aparadores/DUG-741.jpg
Normal file
|
After Width: | Height: | Size: 77 KiB |
BIN
información/Fotos muebles/Aparadores/DUG-W-743.jpg
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
información/Fotos muebles/Aparadores/IMO-35-113.jpg
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
información/Fotos muebles/Aparadores/IMO-35-126.jpg
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
información/Fotos muebles/Aparadores/IMO-35-57.jpg
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
información/Fotos muebles/Aparadores/IMO-35-81.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
información/Fotos muebles/Aparadores/IMO-75-12.jpg
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
información/Fotos muebles/Aparadores/IMO-75-25.jpg
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
información/Fotos muebles/Aparadores/IMO-75-26.jpg
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
información/Fotos muebles/Aparadores/IMO-75-39.jpg
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
información/Fotos muebles/Aparadores/IMO-75-46.jpg
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
información/Fotos muebles/Aparadores/IXI-16265.jpg
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
información/Fotos muebles/Aparadores/IXI-7600400.jpg
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
información/Fotos muebles/Aparadores/IXI-7600500.jpg
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
información/Fotos muebles/Aparadores/IXI-7600600.jpg
Normal file
|
After Width: | Height: | Size: 70 KiB |
BIN
información/Fotos muebles/Aparadores/KUBIK-1400.jpg
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
información/Fotos muebles/Aparadores/MIR-10700.jpg
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
información/Fotos muebles/Aparadores/MOY-145062.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
información/Fotos muebles/Aparadores/MOY-145062J.jpg
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
información/Fotos muebles/Aparadores/MOY-145071.jpg
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
información/Fotos muebles/Aparadores/MOY-14601.jpg
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
información/Fotos muebles/Aparadores/MOY-14608.jpg
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
información/Fotos muebles/Aparadores/MOY-30137.jpg
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
información/Fotos muebles/Aparadores/MOY-301528.jpg
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
información/Fotos muebles/Aparadores/MOY-301529.jpg
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
información/Fotos muebles/Aparadores/MOY-30212.jpg
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
información/Fotos muebles/Aparadores/MOY-30298.jpg
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
información/Fotos muebles/Aparadores/MOY-30313.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
información/Fotos muebles/Aparadores/MOY-30541.jpg
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
información/Fotos muebles/Aparadores/MOY-30550.jpg
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
información/Fotos muebles/Aparadores/MOY-30940.jpg
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
información/Fotos muebles/Aparadores/MOY-30950.jpg
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
información/Fotos muebles/Aparadores/OM-1150.jpg
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
información/Fotos muebles/Aparadores/OM-1151.jpg
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
información/Fotos muebles/Aparadores/OM-1161.jpg
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
información/Fotos muebles/Aparadores/OM-1167.jpg
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
información/Fotos muebles/Aparadores/OM-1172.jpg
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
información/Fotos muebles/Aparadores/OM-555.jpg
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
información/Fotos muebles/Aparadores/OM-627.jpg
Normal file
|
After Width: | Height: | Size: 90 KiB |
BIN
información/Fotos muebles/Aparadores/OM-666.jpg
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
información/Fotos muebles/Aparadores/OM-706.jpg
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
información/Fotos muebles/Aparadores/OM-728.jpg
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
información/Fotos muebles/Aparadores/OM-732.jpg
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
información/Fotos muebles/Aparadores/OM-740.jpg
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
información/Fotos muebles/Aparadores/SOC-10077.jpg
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
información/Fotos muebles/Aparadores/SOC-10093.jpg
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
información/Fotos muebles/Aparadores/SP-30214.jpg
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
información/Fotos muebles/Aparadores/SP-31440.jpg
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
información/Fotos muebles/Aparadores/SP-31577.jpg
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
información/Fotos muebles/Aparadores/VA-3127.jpg
Normal file
|
After Width: | Height: | Size: 93 KiB |
BIN
información/Fotos muebles/Aparadores/VA-8302.jpg
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
información/Fotos muebles/Aparadores/VA-8316.jpg
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
información/Fotos muebles/Aparadores/VIC-15671.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
información/Fotos muebles/Aparadores/VIC-16205.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
información/Fotos muebles/Aparadores/VIC-16224.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
1
información/MUEBLES PRECIOS/.~lock.aparadores.xls#
Normal file
@ -0,0 +1 @@
|
||||
,DAVID-PC/David,David-PC,06.07.2011 16:24,file:///D:/Usuarios/David/AppData/Roaming/LibreOffice/3;
|
||||
@ -1,4 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
||||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
|
||||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1">
|
||||
<file>
|
||||
<url>wp-content/plugins/thecartpress/customposttypes/ProductCustomPostType.class.php</url>
|
||||
<line>158</line>
|
||||
</file>
|
||||
</editor-bookmarks>
|
||||
</project-private>
|
||||
|
||||
@ -323,8 +323,8 @@ class TheCartPress {
|
||||
function postsOrderby( $orderby ) {
|
||||
if ( is_tax( 'tcp_product_tag' ) || is_tax( 'tcp_product_category' ) || is_tax( 'tcp_product_supplier' ) ) {
|
||||
global $wpdb;
|
||||
$desc = isset( $_SESSION['tcp_order_desc'] ) ? $_SESSION['tcp_order_desc'] : 'desc';
|
||||
$type = isset( $_SESSION['tcp_order_type'] ) ? $_SESSION['tcp_order_type'] : 'date';
|
||||
$desc = isset( $_SESSION['tcp_order_desc'] ) ? $_SESSION['tcp_order_desc'] : 'asc';
|
||||
$type = isset( $_SESSION['tcp_order_type'] ) ? $_SESSION['tcp_order_type'] : 'title';
|
||||
switch ( $type ) {
|
||||
case 'order':
|
||||
$orderby = "CAST(tcp_postmeta_order.meta_value AS UNSIGNED) $desc, {$wpdb->posts}.post_title";
|
||||
@ -336,7 +336,7 @@ class TheCartPress {
|
||||
$orderby = "{$wpdb->posts}.post_title $desc";
|
||||
break;
|
||||
case 'date':
|
||||
$orderby = "{$wpdb->posts}.post_date $desc"; //, {$wpdb->posts}.post_title";
|
||||
$orderby = "{$wpdb->posts}.post_date $desc, {$wpdb->posts}.post_title";
|
||||
break;
|
||||
case 'author':
|
||||
$orderby = "tcp_users.display_name $desc, {$wpdb->posts}.post_title";
|
||||
|
||||
@ -53,7 +53,7 @@ class ProductCustomPostType {
|
||||
'capability_type' => 'post',
|
||||
'hierarchical' => false, //allways false
|
||||
'query_var' => true,
|
||||
'supports' => array( 'title', 'excerpt', 'editor', 'thumbnail', 'comments' ),
|
||||
'supports' => array( 'title', 'excerpt', 'editor', 'thumbnail'),
|
||||
'taxonomies' => array( ProductCustomPostType::$PRODUCT_CATEGORY ), // Permalinks format
|
||||
'rewrite' => array( 'slug' => isset( $thecartpress->settings['product_rewrite'] ) ? $thecartpress->settings['product_rewrite'] : 'products' ),
|
||||
'has_archive' => isset( $thecartpress->settings['product_rewrite'] ) && $thecartpress->settings['product_rewrite'] != '' ? $thecartpress->settings['product_rewrite'] : 'products',
|
||||
@ -62,6 +62,7 @@ class ProductCustomPostType {
|
||||
if ( is_admin() ) {
|
||||
add_filter( 'post_row_actions', array( $this, 'postRowActions' ) );
|
||||
add_filter( 'manage_edit-' . ProductCustomPostType::$PRODUCT . '_columns', array( $this, 'customColumnsDefinition' ) );
|
||||
add_filter( 'manage_edit-' . ProductCustomPostType::$PRODUCT . '_sortable_columns', array( $this, 'customSortableColumnsDefinition' ) );
|
||||
}
|
||||
$labels = array(
|
||||
'name' => _x( 'Categories', 'taxonomy general name', 'tcp' ),
|
||||
@ -110,18 +111,38 @@ class ProductCustomPostType {
|
||||
add_action( 'manage_posts_custom_column', array( $this, 'managePostCustomColumns' ) );
|
||||
add_action( 'restrict_manage_posts', array( $this, 'restrictManagePosts' ) );
|
||||
add_filter( 'parse_query', array( $this, 'parseQuery' ) ); //TODO 3.1
|
||||
add_filter( 'request', array( $this, 'request' ) ); //TODO 3.1
|
||||
//for quick edit
|
||||
//add_action('quick_edit_custom_box', array( $this, 'quickEditCustomBox' ), 10, 2 );
|
||||
add_action('quick_edit_custom_box', array( $this, 'quickEditCustomBox' ), 10, 2 );
|
||||
}
|
||||
}
|
||||
|
||||
/*function quickEditCustomBox( $column_name, $post_type ) {
|
||||
|
||||
function request ( $vars ) {
|
||||
global $current_screen;
|
||||
if ( $current_screen->post_type == ProductCustomPostType::$PRODUCT ) {
|
||||
if(is_admin() && !isset($vars['orderby'])) {
|
||||
$vars['orderby'] = 'title';
|
||||
$vars['order'] = 'asc';
|
||||
}
|
||||
}
|
||||
return $vars;
|
||||
}
|
||||
|
||||
function quickEditCustomBox( $column_name, $post_type ) {
|
||||
if ( $post_type == ProductCustomPostType::$PRODUCT ) {
|
||||
global $post; //TODO
|
||||
if ('price' == $column_name)
|
||||
echo 'price:', tcp_get_the_price( $post->ID );
|
||||
global $post; //TODO
|
||||
if ('order' == $column_name)
|
||||
{?>
|
||||
<fieldset class="inline-edit-col-left">
|
||||
<div class="inline-edit-col">
|
||||
<label class="alignleft">
|
||||
<span class="title">Orden</span>
|
||||
<input type="text" name="tcp_order"/>
|
||||
</label>
|
||||
</fieldset>
|
||||
<?php }
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
function postRowActions( $actions, $post_line = null ) {
|
||||
global $post;
|
||||
@ -146,9 +167,10 @@ class ProductCustomPostType {
|
||||
$columns = array(
|
||||
'cb' => '<input type="checkbox" />',
|
||||
'title' => __( 'Name', 'tcp' ),
|
||||
'label' => __( 'label', 'tcp' ),
|
||||
'price' => __( 'Type - price', 'tcp' ),
|
||||
'date' => __( 'date', 'tcp' ),
|
||||
'order' => __( 'Order (in loops/catalogue)', 'tcp' ),
|
||||
'label' => __( 'label', 'tcp' ),
|
||||
'price' => __( 'Price', 'tcp' ),
|
||||
'date' => __( 'Date', 'tcp' ),
|
||||
//'comments' => __('Comments', 'tcp' ),
|
||||
);
|
||||
global $thecartpress;
|
||||
@ -156,6 +178,16 @@ class ProductCustomPostType {
|
||||
return $columns;
|
||||
}
|
||||
|
||||
function customSortableColumnsDefinition( $columns ){
|
||||
$columns['order'] = __( 'Order (in loops/catalogue)', 'tcp' );
|
||||
$columns['price'] = __( 'Price', 'tcp' );
|
||||
$columns['cats'] = __('Categories', 'tcp');
|
||||
|
||||
return $columns;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Prints the custom fields values in the products list
|
||||
*/
|
||||
@ -168,8 +200,12 @@ class ProductCustomPostType {
|
||||
$label = tcp_get_the_meta( 'tcp_back_end_label', $post->ID );
|
||||
if ( strlen( $label ) ) echo $label;
|
||||
} elseif ( 'price' == $column_name ) {
|
||||
echo tcp_get_the_product_type( $post->ID ) . ' - ' . tcp_format_the_price( tcp_get_the_price( $post->ID ) );
|
||||
}
|
||||
//echo tcp_get_the_product_type( $post->ID ) . ' - ' . tcp_format_the_price( tcp_get_the_price( $post->ID ) );
|
||||
echo tcp_format_the_price( tcp_get_the_price( $post->ID ) );
|
||||
} elseif ( 'order' == $column_name ) {
|
||||
echo tcp_get_the_order( $post->ID ) ;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
BIN
src/wp-content/uploads/2011/06/fondo-la-tienda-148x80.jpg
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
src/wp-content/uploads/2011/06/fondo-la-tienda-31x16.jpg
Normal file
|
After Width: | Height: | Size: 812 B |
BIN
src/wp-content/uploads/2011/06/fondo-la-tienda-38x20.jpg
Normal file
|
After Width: | Height: | Size: 899 B |
BIN
src/wp-content/uploads/2011/06/fondo-la-tienda-395x215.jpg
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
src/wp-content/uploads/2011/06/fondo-la-tienda-45x24.jpg
Normal file
|
After Width: | Height: | Size: 951 B |
BIN
src/wp-content/uploads/2011/06/fondo-la-tienda-95x51.jpg
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
src/wp-content/uploads/2011/06/fondo-localizanos-148x80.jpg
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
src/wp-content/uploads/2011/06/fondo-localizanos-31x16.jpg
Normal file
|
After Width: | Height: | Size: 799 B |
BIN
src/wp-content/uploads/2011/06/fondo-localizanos-38x20.jpg
Normal file
|
After Width: | Height: | Size: 878 B |
BIN
src/wp-content/uploads/2011/06/fondo-localizanos-395x215.jpg
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
src/wp-content/uploads/2011/06/fondo-localizanos-45x24.jpg
Normal file
|
After Width: | Height: | Size: 907 B |
BIN
src/wp-content/uploads/2011/06/fondo-localizanos-95x51.jpg
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/wp-content/uploads/2011/06/fondo-servicios-148x80.jpg
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
src/wp-content/uploads/2011/06/fondo-servicios-31x16.jpg
Normal file
|
After Width: | Height: | Size: 822 B |
BIN
src/wp-content/uploads/2011/06/fondo-servicios-38x20.jpg
Normal file
|
After Width: | Height: | Size: 900 B |
BIN
src/wp-content/uploads/2011/06/fondo-servicios-395x215.jpg
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/wp-content/uploads/2011/06/fondo-servicios-45x24.jpg
Normal file
|
After Width: | Height: | Size: 932 B |
BIN
src/wp-content/uploads/2011/06/fondo-servicios-95x51.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/wp-content/uploads/2011/06/fondonuevaweb-148x102.jpg
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
src/wp-content/uploads/2011/06/fondonuevaweb-311x215.jpg
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
src/wp-content/uploads/2011/06/fondonuevaweb-31x21.jpg
Normal file
|
After Width: | Height: | Size: 806 B |
BIN
src/wp-content/uploads/2011/06/fondonuevaweb-38x26.jpg
Normal file
|
After Width: | Height: | Size: 850 B |
BIN
src/wp-content/uploads/2011/06/fondonuevaweb-45x31.jpg
Normal file
|
After Width: | Height: | Size: 887 B |
BIN
src/wp-content/uploads/2011/06/fondonuevaweb-95x65.jpg
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/wp-content/uploads/2011/06/logo-rojo-148x37.gif
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
src/wp-content/uploads/2011/06/logo-rojo-31x7.gif
Normal file
|
After Width: | Height: | Size: 361 B |
BIN
src/wp-content/uploads/2011/06/logo-rojo-38x9.gif
Normal file
|
After Width: | Height: | Size: 392 B |
BIN
src/wp-content/uploads/2011/06/logo-rojo-45x11.gif
Normal file
|
After Width: | Height: | Size: 696 B |
BIN
src/wp-content/uploads/2011/06/logo-rojo-95x24.gif
Normal file
|
After Width: | Height: | Size: 1.2 KiB |